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
a355c84d
Commit
a355c84d
authored
Sep 02, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default clipping region should be resolution of the DC, not the
current visible region.
parent
e07e1ee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
clipping.c
dlls/gdi/clipping.c
+14
-9
No files found.
dlls/gdi/clipping.c
View file @
a355c84d
...
...
@@ -51,6 +51,18 @@ void CLIPPING_UpdateGCRegion( DC * dc )
dc
->
funcs
->
pSetDeviceClipping
(
dc
->
physDev
,
dc
->
hVisRgn
,
dc
->
hClipRgn
);
}
/***********************************************************************
* create_default_clip_rgn
*
* Create a default clipping region when none already exists.
*/
static
inline
void
create_default_clip_region
(
DC
*
dc
)
{
dc
->
hClipRgn
=
CreateRectRgn
(
0
,
0
,
GetDeviceCaps
(
dc
->
hSelf
,
HORZRES
),
GetDeviceCaps
(
dc
->
hSelf
,
VERTRES
));
}
/***********************************************************************
* SelectClipRgn (GDI32.@)
...
...
@@ -97,11 +109,7 @@ INT WINAPI ExtSelectClipRgn( HDC hdc, HRGN hrgn, INT fnMode )
else
{
if
(
!
dc
->
hClipRgn
)
{
RECT
rect
;
GetRgnBox
(
dc
->
hVisRgn
,
&
rect
);
dc
->
hClipRgn
=
CreateRectRgnIndirect
(
&
rect
);
}
create_default_clip_region
(
dc
);
if
(
fnMode
==
RGN_COPY
)
CombineRgn
(
dc
->
hClipRgn
,
hrgn
,
0
,
fnMode
);
...
...
@@ -206,10 +214,7 @@ INT WINAPI ExcludeClipRect( HDC hdc, INT left, INT top,
else
{
if
(
!
dc
->
hClipRgn
)
{
dc
->
hClipRgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
CombineRgn
(
dc
->
hClipRgn
,
dc
->
hVisRgn
,
0
,
RGN_COPY
);
}
create_default_clip_region
(
dc
);
ret
=
CombineRgn
(
dc
->
hClipRgn
,
dc
->
hClipRgn
,
newRgn
,
RGN_DIFF
);
DeleteObject
(
newRgn
);
}
...
...
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