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
8f7f2036
Commit
8f7f2036
authored
Jun 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Reduce the size of the test output a little.
parent
a6cdd538
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
font.c
dlls/gdi32/tests/font.c
+6
-10
No files found.
dlls/gdi32/tests/font.c
View file @
8f7f2036
...
@@ -1633,8 +1633,6 @@ static void test_text_metrics(const LOGFONTA *lf)
...
@@ -1633,8 +1633,6 @@ static void test_text_metrics(const LOGFONTA *lf)
LONG
size
,
ret
;
LONG
size
,
ret
;
const
char
*
font_name
=
lf
->
lfFaceName
;
const
char
*
font_name
=
lf
->
lfFaceName
;
trace
(
"Testing font metrics for %s, charset %d
\n
"
,
font_name
,
lf
->
lfCharSet
);
hdc
=
GetDC
(
0
);
hdc
=
GetDC
(
0
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
@@ -1660,21 +1658,19 @@ static void test_text_metrics(const LOGFONTA *lf)
...
@@ -1660,21 +1658,19 @@ static void test_text_metrics(const LOGFONTA *lf)
ok
(
ret
==
size
,
"GetFontData should return %u not %u
\n
"
,
size
,
ret
);
ok
(
ret
==
size
,
"GetFontData should return %u not %u
\n
"
,
size
,
ret
);
version
=
GET_BE_WORD
(
tt_os2
.
version
);
version
=
GET_BE_WORD
(
tt_os2
.
version
);
trace
(
"OS/2 chunk version %u, vendor %4.4s
\n
"
,
version
,
(
LPCSTR
)
&
tt_os2
.
achVendID
);
first_unicode_char
=
GET_BE_WORD
(
tt_os2
.
usFirstCharIndex
);
first_unicode_char
=
GET_BE_WORD
(
tt_os2
.
usFirstCharIndex
);
last_unicode_char
=
GET_BE_WORD
(
tt_os2
.
usLastCharIndex
);
last_unicode_char
=
GET_BE_WORD
(
tt_os2
.
usLastCharIndex
);
default_char
=
GET_BE_WORD
(
tt_os2
.
usDefaultChar
);
default_char
=
GET_BE_WORD
(
tt_os2
.
usDefaultChar
);
break_char
=
GET_BE_WORD
(
tt_os2
.
usBreakChar
);
break_char
=
GET_BE_WORD
(
tt_os2
.
usBreakChar
);
trace
(
"for %s first %x, last %x, default %x, break %x
\n
"
,
font_name
,
trace
(
"font %s charset %u: %x-%x default %x break %x OS/2 version %u vendor %4.4s
\n
"
,
first_unicode_char
,
last_unicode_char
,
default_char
,
break_char
);
font_name
,
lf
->
lfCharSet
,
first_unicode_char
,
last_unicode_char
,
default_char
,
break_char
,
version
,
(
LPCSTR
)
&
tt_os2
.
achVendID
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
GetTextMetricsA
(
hdc
,
&
tmA
);
ret
=
GetTextMetricsA
(
hdc
,
&
tmA
);
ok
(
ret
,
"GetTextMetricsA error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"GetTextMetricsA error %u
\n
"
,
GetLastError
());
trace
(
"A: first %x, last %x, default %x, break %x
\n
"
,
tmA
.
tmFirstChar
,
tmA
.
tmLastChar
,
tmA
.
tmDefaultChar
,
tmA
.
tmBreakChar
);
#if 0 /* FIXME: This doesn't appear to be what Windows does */
#if 0 /* FIXME: This doesn't appear to be what Windows does */
test_char = min(first_unicode_char - 1, 255);
test_char = min(first_unicode_char - 1, 255);
...
@@ -1700,9 +1696,9 @@ static void test_text_metrics(const LOGFONTA *lf)
...
@@ -1700,9 +1696,9 @@ static void test_text_metrics(const LOGFONTA *lf)
"GetTextMetricsW error %u
\n
"
,
GetLastError
());
"GetTextMetricsW error %u
\n
"
,
GetLastError
());
if
(
ret
)
if
(
ret
)
{
{
trace
(
"
W: first %x, last %x, default %x, break %x
\n
"
,
trace
(
"
%04x-%04x (%02x-%02x) default %x (%x) break %x (%x)
\n
"
,
tmW
.
tmFirstChar
,
tmW
.
tmLastChar
,
tm
W
.
tmDefaul
tChar
,
tmW
.
tmFirstChar
,
tmW
.
tmLastChar
,
tm
A
.
tmFirstChar
,
tmA
.
tmLas
tChar
,
tmW
.
tmBreakChar
);
tmW
.
tm
DefaultChar
,
tmA
.
tmDefaultChar
,
tmW
.
tmBreakChar
,
tmA
.
tm
BreakChar
);
if
(
lf
->
lfCharSet
==
SYMBOL_CHARSET
)
if
(
lf
->
lfCharSet
==
SYMBOL_CHARSET
)
{
{
...
...
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