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
e069662c
Commit
e069662c
authored
Feb 15, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: SelectClipPath should update actual clipping region for a EMF DC.
parent
e89edd60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
dc.c
dlls/gdi32/enhmfdrv/dc.c
+9
-10
No files found.
dlls/gdi32/enhmfdrv/dc.c
View file @
e069662c
...
...
@@ -159,7 +159,6 @@ INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT botto
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pExcludeClipRect
);
EMREXCLUDECLIPRECT
emr
;
BOOL
ret
;
emr
.
emr
.
iType
=
EMR_EXCLUDECLIPRECT
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
...
...
@@ -167,15 +166,14 @@ INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT botto
emr
.
rclClip
.
top
=
top
;
emr
.
rclClip
.
right
=
right
;
emr
.
rclClip
.
bottom
=
bottom
;
ret
=
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
)
;
return
ret
?
next
->
funcs
->
pExcludeClipRect
(
next
,
left
,
top
,
right
,
bottom
)
:
ERROR
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
ERROR
;
return
next
->
funcs
->
pExcludeClipRect
(
next
,
left
,
top
,
right
,
bottom
)
;
}
INT
EMFDRV_IntersectClipRect
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pIntersectClipRect
);
EMRINTERSECTCLIPRECT
emr
;
BOOL
ret
;
emr
.
emr
.
iType
=
EMR_INTERSECTCLIPRECT
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
...
...
@@ -183,22 +181,21 @@ INT EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bot
emr
.
rclClip
.
top
=
top
;
emr
.
rclClip
.
right
=
right
;
emr
.
rclClip
.
bottom
=
bottom
;
ret
=
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
)
;
return
ret
?
next
->
funcs
->
pIntersectClipRect
(
next
,
left
,
top
,
right
,
bottom
)
:
ERROR
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
ERROR
;
return
next
->
funcs
->
pIntersectClipRect
(
next
,
left
,
top
,
right
,
bottom
)
;
}
INT
EMFDRV_OffsetClipRgn
(
PHYSDEV
dev
,
INT
x
,
INT
y
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pOffsetClipRgn
);
EMROFFSETCLIPRGN
emr
;
BOOL
ret
;
emr
.
emr
.
iType
=
EMR_OFFSETCLIPRGN
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
ptlOffset
.
x
=
x
;
emr
.
ptlOffset
.
y
=
y
;
ret
=
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
)
;
return
ret
?
next
->
funcs
->
pOffsetClipRgn
(
next
,
x
,
y
)
:
ERROR
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
ERROR
;
return
next
->
funcs
->
pOffsetClipRgn
(
next
,
x
,
y
)
;
}
INT
EMFDRV_ExtSelectClipRgn
(
PHYSDEV
dev
,
HRGN
hrgn
,
INT
mode
)
...
...
@@ -477,13 +474,15 @@ BOOL EMFDRV_FlattenPath( PHYSDEV dev )
BOOL
EMFDRV_SelectClipPath
(
PHYSDEV
dev
,
INT
iMode
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectClipPath
);
EMRSELECTCLIPPATH
emr
;
emr
.
emr
.
iType
=
EMR_SELECTCLIPPATH
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
iMode
=
iMode
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pSelectClipPath
(
next
,
iMode
);
}
BOOL
EMFDRV_StrokeAndFillPath
(
PHYSDEV
dev
)
...
...
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