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
0c59e312
Commit
0c59e312
authored
May 25, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Ignore exScale/eyScale when comparing EMREXTTEXTOUT EMF records.
parent
8c79f136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
metafile.c
dlls/gdi32/tests/metafile.c
+40
-1
No files found.
dlls/gdi32/tests/metafile.c
View file @
0c59e312
...
@@ -975,6 +975,22 @@ static void dump_emf_record(const ENHMETARECORD *emr, const char *desc)
...
@@ -975,6 +975,22 @@ static void dump_emf_record(const ENHMETARECORD *emr, const char *desc)
printf
(
"};
\n
"
);
printf
(
"};
\n
"
);
}
}
static
void
dump_EMREXTTEXTOUT
(
const
EMREXTTEXTOUTW
*
eto
)
{
trace
(
"rclBounds %d,%d - %d,%d
\n
"
,
eto
->
rclBounds
.
left
,
eto
->
rclBounds
.
top
,
eto
->
rclBounds
.
right
,
eto
->
rclBounds
.
bottom
);
trace
(
"iGraphicsMode %u
\n
"
,
eto
->
iGraphicsMode
);
trace
(
"exScale: %f
\n
"
,
eto
->
exScale
);
trace
(
"eyScale: %f
\n
"
,
eto
->
eyScale
);
trace
(
"emrtext.ptlReference %d,%d
\n
"
,
eto
->
emrtext
.
ptlReference
.
x
,
eto
->
emrtext
.
ptlReference
.
y
);
trace
(
"emrtext.nChars %u
\n
"
,
eto
->
emrtext
.
nChars
);
trace
(
"emrtext.offString %#x
\n
"
,
eto
->
emrtext
.
offString
);
trace
(
"emrtext.fOptions %#x
\n
"
,
eto
->
emrtext
.
fOptions
);
trace
(
"emrtext.rcl %d,%d - %d,%d
\n
"
,
eto
->
emrtext
.
rcl
.
left
,
eto
->
emrtext
.
rcl
.
top
,
eto
->
emrtext
.
rcl
.
right
,
eto
->
emrtext
.
rcl
.
bottom
);
trace
(
"emrtext.offDx %#x
\n
"
,
eto
->
emrtext
.
offDx
);
}
static
BOOL
match_emf_record
(
const
ENHMETARECORD
*
emr1
,
const
ENHMETARECORD
*
emr2
,
static
BOOL
match_emf_record
(
const
ENHMETARECORD
*
emr1
,
const
ENHMETARECORD
*
emr2
,
const
char
*
desc
,
BOOL
ignore_scaling
,
BOOL
todo
)
const
char
*
desc
,
BOOL
ignore_scaling
,
BOOL
todo
)
{
{
...
@@ -1017,7 +1033,30 @@ static BOOL match_emf_record(const ENHMETARECORD *emr1, const ENHMETARECORD *emr
...
@@ -1017,7 +1033,30 @@ static BOOL match_emf_record(const ENHMETARECORD *emr1, const ENHMETARECORD *emr
emr1
->
iType
==
EMR_SETVIEWPORTEXTEX
))
emr1
->
iType
==
EMR_SETVIEWPORTEXTEX
))
return
TRUE
;
return
TRUE
;
diff
=
memcmp
(
emr1
->
dParm
,
emr2
->
dParm
,
emr1
->
nSize
-
sizeof
(
EMR
));
if
(
emr1
->
iType
==
EMR_EXTTEXTOUTW
||
emr1
->
iType
==
EMR_EXTTEXTOUTA
)
{
EMREXTTEXTOUTW
*
eto1
,
*
eto2
;
eto1
=
HeapAlloc
(
GetProcessHeap
(),
0
,
emr1
->
nSize
);
memcpy
(
eto1
,
emr1
,
emr1
->
nSize
);
eto2
=
HeapAlloc
(
GetProcessHeap
(),
0
,
emr2
->
nSize
);
memcpy
(
eto2
,
emr2
,
emr2
->
nSize
);
/* different Windows versions setup DC scaling differently */
eto1
->
exScale
=
eto1
->
eyScale
=
0
.
0
;
eto2
->
exScale
=
eto2
->
eyScale
=
0
.
0
;
diff
=
memcmp
(
eto1
,
eto2
,
emr1
->
nSize
);
if
(
diff
)
{
dump_EMREXTTEXTOUT
(
eto1
);
dump_EMREXTTEXTOUT
(
eto2
);
}
HeapFree
(
GetProcessHeap
(),
0
,
eto1
);
HeapFree
(
GetProcessHeap
(),
0
,
eto2
);
}
else
diff
=
memcmp
(
emr1
,
emr2
,
emr1
->
nSize
);
if
(
diff
&&
todo
)
if
(
diff
&&
todo
)
{
{
todo_wine
todo_wine
...
...
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