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
9a2688e6
Commit
9a2688e6
authored
Feb 13, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make sure that actual clipping region is updated for a EMF DC.
parent
0130eca6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
dc.c
dlls/gdi32/enhmfdrv/dc.c
+2
-1
metafile.c
dlls/gdi32/tests/metafile.c
+5
-6
No files found.
dlls/gdi32/enhmfdrv/dc.c
View file @
9a2688e6
...
...
@@ -191,6 +191,7 @@ INT EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
INT
EMFDRV_ExtSelectClipRgn
(
PHYSDEV
dev
,
HRGN
hrgn
,
INT
mode
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pExtSelectClipRgn
);
EMREXTSELECTCLIPRGN
*
emr
;
DWORD
size
,
rgnsize
;
BOOL
ret
;
...
...
@@ -213,7 +214,7 @@ INT EMFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode )
ret
=
EMFDRV_WriteRecord
(
dev
,
&
emr
->
emr
);
HeapFree
(
GetProcessHeap
(),
0
,
emr
);
return
ret
?
SIMPLEREGION
:
ERROR
;
return
ret
?
next
->
funcs
->
pExtSelectClipRgn
(
next
,
hrgn
,
mode
)
:
ERROR
;
}
INT
EMFDRV_SetMapMode
(
PHYSDEV
dev
,
INT
mode
)
...
...
dlls/gdi32/tests/metafile.c
View file @
9a2688e6
...
...
@@ -2477,14 +2477,13 @@ static void test_emf_clipping(void)
SetRect
(
&
rc_sclip
,
100
,
100
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
));
hrgn
=
CreateRectRgn
(
rc_sclip
.
left
,
rc_sclip
.
top
,
rc_sclip
.
right
,
rc_sclip
.
bottom
);
SelectClipRgn
(
hdc
,
hrgn
);
SetRect
(
&
rc_res
,
-
1
,
-
1
,
-
1
,
-
1
);
ret
=
GetClipBox
(
hdc
,
&
rc_res
);
todo_wine
ok
(
ret
==
SIMPLEREGION
,
"got %d
\n
"
,
ret
);
if
(
ret
==
SIMPLEREGION
)
ok
(
EqualRect
(
&
rc_res
,
&
rc_sclip
),
"expected rc_res (%d, %d) - (%d, %d), got (%d, %d) - (%d, %d)
\n
"
,
rc_sclip
.
left
,
rc_sclip
.
top
,
rc_sclip
.
right
,
rc_sclip
.
bottom
,
rc_res
.
left
,
rc_res
.
top
,
rc_res
.
right
,
rc_res
.
bottom
);
ok
(
EqualRect
(
&
rc_res
,
&
rc_sclip
),
"expected rc_res (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rc_sclip
.
left
,
rc_sclip
.
top
,
rc_sclip
.
right
,
rc_sclip
.
bottom
,
rc_res
.
left
,
rc_res
.
top
,
rc_res
.
right
,
rc_res
.
bottom
);
hemf
=
CloseEnhMetaFile
(
hdc
);
DeleteEnhMetaFile
(
hemf
);
...
...
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