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
a465c95f
Commit
a465c95f
authored
May 13, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept EMR_EXTTEXTOUT records with emrtext.offDx set to 0.
parent
c5da9b2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
enhmetafile.c
objects/enhmetafile.c
+22
-2
No files found.
objects/enhmetafile.c
View file @
a465c95f
...
@@ -1000,15 +1000,27 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1000,15 +1000,27 @@ BOOL WINAPI PlayEnhMetaFileRecord(
{
{
PEMREXTTEXTOUTA
pExtTextOutA
=
(
PEMREXTTEXTOUTA
)
mr
;
PEMREXTTEXTOUTA
pExtTextOutA
=
(
PEMREXTTEXTOUTA
)
mr
;
RECT
rc
;
RECT
rc
;
INT
*
dx
=
NULL
;
rc
.
left
=
pExtTextOutA
->
emrtext
.
rcl
.
left
;
rc
.
left
=
pExtTextOutA
->
emrtext
.
rcl
.
left
;
rc
.
top
=
pExtTextOutA
->
emrtext
.
rcl
.
top
;
rc
.
top
=
pExtTextOutA
->
emrtext
.
rcl
.
top
;
rc
.
right
=
pExtTextOutA
->
emrtext
.
rcl
.
right
;
rc
.
right
=
pExtTextOutA
->
emrtext
.
rcl
.
right
;
rc
.
bottom
=
pExtTextOutA
->
emrtext
.
rcl
.
bottom
;
rc
.
bottom
=
pExtTextOutA
->
emrtext
.
rcl
.
bottom
;
TRACE
(
"EMR_EXTTEXTOUTA: x,y = %ld, %ld. rect = %ld, %ld - %ld, %ld. flags %08lx
\n
"
,
pExtTextOutA
->
emrtext
.
ptlReference
.
x
,
pExtTextOutA
->
emrtext
.
ptlReference
.
y
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pExtTextOutA
->
emrtext
.
fOptions
);
/* 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.
*/
if
(
pExtTextOutA
->
emrtext
.
offDx
)
dx
=
(
INT
*
)((
BYTE
*
)
mr
+
pExtTextOutA
->
emrtext
.
offDx
);
ExtTextOutA
(
hdc
,
pExtTextOutA
->
emrtext
.
ptlReference
.
x
,
pExtTextOutA
->
emrtext
.
ptlReference
.
y
,
ExtTextOutA
(
hdc
,
pExtTextOutA
->
emrtext
.
ptlReference
.
x
,
pExtTextOutA
->
emrtext
.
ptlReference
.
y
,
pExtTextOutA
->
emrtext
.
fOptions
,
&
rc
,
pExtTextOutA
->
emrtext
.
fOptions
,
&
rc
,
(
LPSTR
)((
BYTE
*
)
mr
+
pExtTextOutA
->
emrtext
.
offString
),
pExtTextOutA
->
emrtext
.
nChars
,
(
LPSTR
)((
BYTE
*
)
mr
+
pExtTextOutA
->
emrtext
.
offString
),
pExtTextOutA
->
emrtext
.
nChars
,
(
INT
*
)((
BYTE
*
)
mr
+
pExtTextOutA
->
emrtext
.
offDx
)
);
dx
);
break
;
break
;
}
}
...
@@ -1016,6 +1028,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1016,6 +1028,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
{
{
PEMREXTTEXTOUTW
pExtTextOutW
=
(
PEMREXTTEXTOUTW
)
mr
;
PEMREXTTEXTOUTW
pExtTextOutW
=
(
PEMREXTTEXTOUTW
)
mr
;
RECT
rc
;
RECT
rc
;
INT
*
dx
=
NULL
;
rc
.
left
=
pExtTextOutW
->
emrtext
.
rcl
.
left
;
rc
.
left
=
pExtTextOutW
->
emrtext
.
rcl
.
left
;
rc
.
top
=
pExtTextOutW
->
emrtext
.
rcl
.
top
;
rc
.
top
=
pExtTextOutW
->
emrtext
.
rcl
.
top
;
...
@@ -1025,10 +1038,17 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1025,10 +1038,17 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pExtTextOutW
->
emrtext
.
ptlReference
.
x
,
pExtTextOutW
->
emrtext
.
ptlReference
.
y
,
pExtTextOutW
->
emrtext
.
ptlReference
.
x
,
pExtTextOutW
->
emrtext
.
ptlReference
.
y
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pExtTextOutW
->
emrtext
.
fOptions
);
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pExtTextOutW
->
emrtext
.
fOptions
);
/* 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.
*/
if
(
pExtTextOutW
->
emrtext
.
offDx
)
dx
=
(
INT
*
)((
BYTE
*
)
mr
+
pExtTextOutW
->
emrtext
.
offDx
);
ExtTextOutW
(
hdc
,
pExtTextOutW
->
emrtext
.
ptlReference
.
x
,
pExtTextOutW
->
emrtext
.
ptlReference
.
y
,
ExtTextOutW
(
hdc
,
pExtTextOutW
->
emrtext
.
ptlReference
.
x
,
pExtTextOutW
->
emrtext
.
ptlReference
.
y
,
pExtTextOutW
->
emrtext
.
fOptions
,
&
rc
,
pExtTextOutW
->
emrtext
.
fOptions
,
&
rc
,
(
LPWSTR
)((
BYTE
*
)
mr
+
pExtTextOutW
->
emrtext
.
offString
),
pExtTextOutW
->
emrtext
.
nChars
,
(
LPWSTR
)((
BYTE
*
)
mr
+
pExtTextOutW
->
emrtext
.
offString
),
pExtTextOutW
->
emrtext
.
nChars
,
(
INT
*
)((
BYTE
*
)
mr
+
pExtTextOutW
->
emrtext
.
offDx
)
);
dx
);
break
;
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