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
9bc5946c
Commit
9bc5946c
authored
Feb 24, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use graphics mode specified at the EMF creation time when playing EMR_EXTTEXTOUT record.
parent
ac5e9812
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
enhmetafile.c
dlls/gdi32/enhmetafile.c
+16
-0
No files found.
dlls/gdi32/enhmetafile.c
View file @
9bc5946c
...
...
@@ -1133,6 +1133,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
const
EMREXTTEXTOUTA
*
pExtTextOutA
=
(
const
EMREXTTEXTOUTA
*
)
mr
;
RECT
rc
;
const
INT
*
dx
=
NULL
;
int
old_mode
;
rc
.
left
=
pExtTextOutA
->
emrtext
.
rcl
.
left
;
rc
.
top
=
pExtTextOutA
->
emrtext
.
rcl
.
top
;
...
...
@@ -1142,6 +1143,11 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pExtTextOutA
->
emrtext
.
ptlReference
.
x
,
pExtTextOutA
->
emrtext
.
ptlReference
.
y
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pExtTextOutA
->
emrtext
.
fOptions
);
old_mode
=
SetGraphicsMode
(
hdc
,
pExtTextOutA
->
iGraphicsMode
);
/* Reselect the font back into the dc so that the transformation
gets updated. */
SelectObject
(
hdc
,
GetCurrentObject
(
hdc
,
OBJ_FONT
));
/* Linux version of pstoedit produces EMFs with offDx set to 0.
* These files can be enumerated and played under Win98 just
* fine, but at least Win2k chokes on them.
...
...
@@ -1153,6 +1159,8 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pExtTextOutA
->
emrtext
.
fOptions
,
&
rc
,
(
LPCSTR
)((
const
BYTE
*
)
mr
+
pExtTextOutA
->
emrtext
.
offString
),
pExtTextOutA
->
emrtext
.
nChars
,
dx
);
SetGraphicsMode
(
hdc
,
old_mode
);
break
;
}
...
...
@@ -1161,6 +1169,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
const
EMREXTTEXTOUTW
*
pExtTextOutW
=
(
const
EMREXTTEXTOUTW
*
)
mr
;
RECT
rc
;
const
INT
*
dx
=
NULL
;
int
old_mode
;
rc
.
left
=
pExtTextOutW
->
emrtext
.
rcl
.
left
;
rc
.
top
=
pExtTextOutW
->
emrtext
.
rcl
.
top
;
...
...
@@ -1170,6 +1179,11 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pExtTextOutW
->
emrtext
.
ptlReference
.
x
,
pExtTextOutW
->
emrtext
.
ptlReference
.
y
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pExtTextOutW
->
emrtext
.
fOptions
);
old_mode
=
SetGraphicsMode
(
hdc
,
pExtTextOutW
->
iGraphicsMode
);
/* Reselect the font back into the dc so that the transformation
gets updated. */
SelectObject
(
hdc
,
GetCurrentObject
(
hdc
,
OBJ_FONT
));
/* Linux version of pstoedit produces EMFs with offDx set to 0.
* These files can be enumerated and played under Win98 just
* fine, but at least Win2k chokes on them.
...
...
@@ -1181,6 +1195,8 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pExtTextOutW
->
emrtext
.
fOptions
,
&
rc
,
(
LPCWSTR
)((
const
BYTE
*
)
mr
+
pExtTextOutW
->
emrtext
.
offString
),
pExtTextOutW
->
emrtext
.
nChars
,
dx
);
SetGraphicsMode
(
hdc
,
old_mode
);
break
;
}
...
...
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