Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6db71654
Commit
6db71654
authored
Jan 28, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that caused the whole window to be repainted by RedrawWindow
when the passed region was empty.
parent
7d92b5d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
painting.c
dlls/user/painting.c
+5
-1
No files found.
dlls/user/painting.c
View file @
6db71654
...
...
@@ -441,11 +441,15 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rect, HRGN hrgn, UINT flags )
{
DWORD
size
;
RGNDATA
*
data
=
NULL
;
static
const
RECT
empty
;
if
(
!
(
size
=
GetRegionData
(
hrgn
,
0
,
NULL
)))
return
FALSE
;
if
(
!
(
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
return
FALSE
;
GetRegionData
(
hrgn
,
size
,
data
);
ret
=
redraw_window_rects
(
hwnd
,
flags
,
(
RECT
*
)
data
->
Buffer
,
data
->
rdh
.
nCount
);
if
(
!
data
->
rdh
.
nCount
)
/* empty region -> use a single all-zero rectangle */
ret
=
redraw_window_rects
(
hwnd
,
flags
,
&
empty
,
1
);
else
ret
=
redraw_window_rects
(
hwnd
,
flags
,
(
const
RECT
*
)
data
->
Buffer
,
data
->
rdh
.
nCount
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment