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
c40b4341
Commit
c40b4341
authored
Feb 17, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Feb 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Win9x truncates the LONG elements of LOGFONT to 16 bit values.
parent
d69340cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
font.c
dlls/gdi32/tests/font.c
+15
-5
No files found.
dlls/gdi32/tests/font.c
View file @
c40b4341
...
...
@@ -106,11 +106,21 @@ static void check_font(const char* test, const LOGFONTA* lf, HFONT hfont)
minlen
++
;
minlen
+=
FIELD_OFFSET
(
LOGFONTA
,
lfFaceName
)
+
1
;
ok
(
ret
==
sizeof
(
LOGFONTA
)
||
ret
==
minlen
,
"%s: GetObject returned %d
\n
"
,
test
,
ret
);
ok
(
lf
->
lfHeight
==
getobj_lf
.
lfHeight
,
"lfHeight: expect %08x got %08x
\n
"
,
lf
->
lfHeight
,
getobj_lf
.
lfHeight
);
ok
(
lf
->
lfWidth
==
getobj_lf
.
lfWidth
,
"lfWidth: expect %08x got %08x
\n
"
,
lf
->
lfWidth
,
getobj_lf
.
lfWidth
);
ok
(
lf
->
lfEscapement
==
getobj_lf
.
lfEscapement
,
"lfEscapement: expect %08x got %08x
\n
"
,
lf
->
lfEscapement
,
getobj_lf
.
lfEscapement
);
ok
(
lf
->
lfOrientation
==
getobj_lf
.
lfOrientation
,
"lfOrientation: expect %08x got %08x
\n
"
,
lf
->
lfOrientation
,
getobj_lf
.
lfOrientation
);
ok
(
lf
->
lfWeight
==
getobj_lf
.
lfWeight
,
"lfWeight: expect %08x got %08x
\n
"
,
lf
->
lfWeight
,
getobj_lf
.
lfWeight
);
ok
(
lf
->
lfHeight
==
getobj_lf
.
lfHeight
||
broken
((
SHORT
)
lf
->
lfHeight
==
getobj_lf
.
lfHeight
),
/* win9x */
"lfHeight: expect %08x got %08x
\n
"
,
lf
->
lfHeight
,
getobj_lf
.
lfHeight
);
ok
(
lf
->
lfWidth
==
getobj_lf
.
lfWidth
||
broken
((
SHORT
)
lf
->
lfWidth
==
getobj_lf
.
lfWidth
),
/* win9x */
"lfWidth: expect %08x got %08x
\n
"
,
lf
->
lfWidth
,
getobj_lf
.
lfWidth
);
ok
(
lf
->
lfEscapement
==
getobj_lf
.
lfEscapement
||
broken
((
SHORT
)
lf
->
lfEscapement
==
getobj_lf
.
lfEscapement
),
/* win9x */
"lfEscapement: expect %08x got %08x
\n
"
,
lf
->
lfEscapement
,
getobj_lf
.
lfEscapement
);
ok
(
lf
->
lfOrientation
==
getobj_lf
.
lfOrientation
||
broken
((
SHORT
)
lf
->
lfOrientation
==
getobj_lf
.
lfOrientation
),
/* win9x */
"lfOrientation: expect %08x got %08x
\n
"
,
lf
->
lfOrientation
,
getobj_lf
.
lfOrientation
);
ok
(
lf
->
lfWeight
==
getobj_lf
.
lfWeight
||
broken
((
SHORT
)
lf
->
lfWeight
==
getobj_lf
.
lfWeight
),
/* win9x */
"lfWeight: expect %08x got %08x
\n
"
,
lf
->
lfWeight
,
getobj_lf
.
lfWeight
);
ok
(
lf
->
lfItalic
==
getobj_lf
.
lfItalic
,
"lfItalic: expect %02x got %02x
\n
"
,
lf
->
lfItalic
,
getobj_lf
.
lfItalic
);
ok
(
lf
->
lfUnderline
==
getobj_lf
.
lfUnderline
,
"lfUnderline: expect %02x got %02x
\n
"
,
lf
->
lfUnderline
,
getobj_lf
.
lfUnderline
);
ok
(
lf
->
lfStrikeOut
==
getobj_lf
.
lfStrikeOut
,
"lfStrikeOut: expect %02x got %02x
\n
"
,
lf
->
lfStrikeOut
,
getobj_lf
.
lfStrikeOut
);
...
...
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