Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d1fe894a
Commit
d1fe894a
authored
Oct 22, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make EnumEnhMetaFile update the DC state before calling the callback.
This makes applications with custom callbacks work properly, and fixes 'make test' in a win9x mode.
parent
5bcb15dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
enhmetafile.c
dlls/gdi32/enhmetafile.c
+10
-11
No files found.
dlls/gdi32/enhmetafile.c
View file @
d1fe894a
...
...
@@ -756,10 +756,6 @@ BOOL WINAPI PlayEnhMetaFileRecord(
type
=
mr
->
iType
;
/* In Win9x mode we update the xform if the record will produce output */
if
(
IS_WIN9X
()
&&
emr_produces_output
(
type
)
)
EMF_Update_MF_Xform
(
hdc
,
info
);
TRACE
(
"record %s
\n
"
,
get_emr_name
(
type
));
switch
(
type
)
{
...
...
@@ -2193,13 +2189,6 @@ BOOL WINAPI PlayEnhMetaFileRecord(
TRACE
(
"L:0,0 - 1000,1000 -> D:%d,%d - %d,%d
\n
"
,
tmprc
.
left
,
tmprc
.
top
,
tmprc
.
right
,
tmprc
.
bottom
);
if
(
!
IS_WIN9X
()
)
{
/* WinNT - update the transform (win9x updates when the next graphics output
record is played). */
EMF_Update_MF_Xform
(
hdc
,
info
);
}
return
TRUE
;
}
...
...
@@ -2405,9 +2394,19 @@ BOOL WINAPI EnumEnhMetaFile(
while
(
ret
&&
offset
<
emh
->
nBytes
)
{
emr
=
(
ENHMETARECORD
*
)((
char
*
)
emh
+
offset
);
/* In Win9x mode we update the xform if the record will produce output */
if
(
hdc
&&
IS_WIN9X
()
&&
emr_produces_output
(
emr
->
iType
))
EMF_Update_MF_Xform
(
hdc
,
info
);
TRACE
(
"Calling EnumFunc with record %s, size %d
\n
"
,
get_emr_name
(
emr
->
iType
),
emr
->
nSize
);
ret
=
(
*
callback
)(
hdc
,
ht
,
emr
,
emh
->
nHandles
,
(
LPARAM
)
data
);
offset
+=
emr
->
nSize
;
/* WinNT - update the transform (win9x updates when the next graphics
output record is played). */
if
(
hdc
&&
!
IS_WIN9X
())
EMF_Update_MF_Xform
(
hdc
,
info
);
}
if
(
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