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
18102e9c
Commit
18102e9c
authored
Apr 05, 2019
by
Huw Davies
Committed by
Alexandre Julliard
Apr 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Include the meta region in the clip region.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c3da0672
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
clipping.c
dlls/wineps.drv/clipping.c
+7
-6
No files found.
dlls/wineps.drv/clipping.c
View file @
18102e9c
...
@@ -88,8 +88,8 @@ void PSDRV_SetClip( PHYSDEV dev )
...
@@ -88,8 +88,8 @@ void PSDRV_SetClip( PHYSDEV dev )
return
;
return
;
}
}
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
Get
ClipRgn
(
dev
->
hdc
,
hrgn
))
if
(
Get
RandomRgn
(
dev
->
hdc
,
hrgn
,
3
)
==
1
)
/* clip && meta */
{
{
PSDRV_WriteGSave
(
dev
);
PSDRV_WriteGSave
(
dev
);
PSDRV_AddClip
(
dev
,
hrgn
);
PSDRV_AddClip
(
dev
,
hrgn
);
...
@@ -104,11 +104,12 @@ void PSDRV_SetClip( PHYSDEV dev )
...
@@ -104,11 +104,12 @@ void PSDRV_SetClip( PHYSDEV dev )
void
PSDRV_ResetClip
(
PHYSDEV
dev
)
void
PSDRV_ResetClip
(
PHYSDEV
dev
)
{
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
HRGN
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
HRGN
hrgn
;
BOOL
empty
;
if
(
physDev
->
pathdepth
)
return
;
empty
=
!
GetClipRgn
(
dev
->
hdc
,
hrgn
);
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
!
empty
&&
!
physDev
->
pathdepth
)
if
(
GetRandomRgn
(
dev
->
hdc
,
hrgn
,
3
)
==
1
)
/* clip && meta */
PSDRV_WriteGRestore
(
dev
);
PSDRV_WriteGRestore
(
dev
);
DeleteObject
(
hrgn
);
DeleteObject
(
hrgn
);
}
}
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