Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
15a4fef9
Commit
15a4fef9
authored
Jan 21, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Jan 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In RDW_UpdateRgn(), if hRgn is zero, clear the windows update region
if it is an empty region.
parent
d83ed491
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
painting.c
windows/painting.c
+16
-2
No files found.
windows/painting.c
View file @
15a4fef9
...
...
@@ -459,7 +459,21 @@ static void RDW_UpdateRgns( WND* wndPtr, HRGN hRgn, UINT flags, BOOL firstRecurs
wndPtr
->
hrgnUpdate
=
(
HRGN
)
1
;
}
else
hRgn
=
wndPtr
->
hrgnUpdate
;
/* this is a trick that depends on code in PAINT_RedrawWindow() */
{
/* hRgn is zero */
if
(
wndPtr
->
hrgnUpdate
>
(
HRGN
)
1
)
{
GetRgnBox
(
wndPtr
->
hrgnUpdate
,
&
r
);
if
(
IsRectEmpty
(
&
r
)
)
{
DeleteObject
(
wndPtr
->
hrgnUpdate
);
wndPtr
->
hrgnUpdate
=
0
;
goto
end
;
}
}
hRgn
=
wndPtr
->
hrgnUpdate
;
/* this is a trick that depends
* on code in RDW_Paint() */
}
if
(
!
bHadOne
&&
!
(
wndPtr
->
flags
&
WIN_INTERNAL_PAINT
)
)
add_paint_count
(
wndPtr
->
hwndSelf
,
1
);
...
...
@@ -665,7 +679,7 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex )
{
if
(
SendMessageW
(
hWnd
,
(
bIcon
)
?
WM_ICONERASEBKGND
:
WM_ERASEBKGND
,
(
WPARAM
)
hDC
,
0
))
wndPtr
->
flags
&=
~
WIN_NEEDS_ERASEBKGND
;
wndPtr
->
flags
&=
~
WIN_NEEDS_ERASEBKGND
;
ReleaseDC
(
hWnd
,
hDC
);
}
}
...
...
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