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
a87797fb
Commit
a87797fb
authored
Sep 26, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Use if(0) instead of #if 0 to make sure code still compiles.
parent
707efdc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
font.c
dlls/gdi32/tests/font.c
+9
-11
No files found.
dlls/gdi32/tests/font.c
View file @
a87797fb
...
@@ -1364,11 +1364,10 @@ todo_wine {
...
@@ -1364,11 +1364,10 @@ todo_wine {
for
(
n
=
0
;
n
<
ret
;
n
++
)
for
(
n
=
0
;
n
<
ret
;
n
++
)
{
{
DWORD
j
;
DWORD
j
;
#if 0
/* Disabled to limit console spam */
if (kern_pair[n].wFirst < 127 && kern_pair[n].wSecond < 127)
if
(
0
&&
kern_pair
[
n
].
wFirst
<
127
&&
kern_pair
[
n
].
wSecond
<
127
)
trace
(
"{'%c','%c',%d},
\n
"
,
trace
(
"{'%c','%c',%d},
\n
"
,
kern_pair
[
n
].
wFirst
,
kern_pair
[
n
].
wSecond
,
kern_pair
[
n
].
iKernAmount
);
kern_pair
[
n
].
wFirst
,
kern_pair
[
n
].
wSecond
,
kern_pair
[
n
].
iKernAmount
);
#endif
for
(
j
=
0
;
j
<
kd
[
i
].
total_kern_pairs
;
j
++
)
for
(
j
=
0
;
j
<
kd
[
i
].
total_kern_pairs
;
j
++
)
{
{
if
(
kern_pair
[
n
].
wFirst
==
kd
[
i
].
kern_pair
[
j
].
wFirst
&&
if
(
kern_pair
[
n
].
wFirst
==
kd
[
i
].
kern_pair
[
j
].
wFirst
&&
...
@@ -1820,6 +1819,7 @@ static void test_GetFontUnicodeRanges(void)
...
@@ -1820,6 +1819,7 @@ static void test_GetFontUnicodeRanges(void)
HFONT
hfont
,
hfont_old
;
HFONT
hfont
,
hfont_old
;
DWORD
size
;
DWORD
size
;
GLYPHSET
*
gs
;
GLYPHSET
*
gs
;
DWORD
i
;
if
(
!
pGetFontUnicodeRanges
)
if
(
!
pGetFontUnicodeRanges
)
{
{
...
@@ -1844,10 +1844,10 @@ static void test_GetFontUnicodeRanges(void)
...
@@ -1844,10 +1844,10 @@ static void test_GetFontUnicodeRanges(void)
size
=
pGetFontUnicodeRanges
(
hdc
,
gs
);
size
=
pGetFontUnicodeRanges
(
hdc
,
gs
);
ok
(
size
,
"GetFontUnicodeRanges failed
\n
"
);
ok
(
size
,
"GetFontUnicodeRanges failed
\n
"
);
#if 0
if
(
0
)
/* Disabled to limit console spam */
for
(
i
=
0
;
i
<
gs
->
cRanges
;
i
++
)
for
(
i
=
0
;
i
<
gs
->
cRanges
;
i
++
)
trace
(
"%03d wcLow %04x cGlyphs %u
\n
"
,
i
,
gs
->
ranges
[
i
].
wcLow
,
gs
->
ranges
[
i
].
cGlyphs
);
trace
(
"%03d wcLow %04x cGlyphs %u
\n
"
,
i
,
gs
->
ranges
[
i
].
wcLow
,
gs
->
ranges
[
i
].
cGlyphs
);
#endif
trace
(
"found %u ranges
\n
"
,
gs
->
cRanges
);
trace
(
"found %u ranges
\n
"
,
gs
->
cRanges
);
HeapFree
(
GetProcessHeap
(),
0
,
gs
);
HeapFree
(
GetProcessHeap
(),
0
,
gs
);
...
@@ -1878,10 +1878,9 @@ static INT CALLBACK arial_enum_proc(const LOGFONT *lf, const TEXTMETRIC *tm, DWO
...
@@ -1878,10 +1878,9 @@ static INT CALLBACK arial_enum_proc(const LOGFONT *lf, const TEXTMETRIC *tm, DWO
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
#if 0
if
(
0
)
/* Disabled to limit console spam */
trace
(
"enumed font
\"
%s
\"
, charset %d, height %d, weight %d, italic %d
\n
"
,
trace
(
"enumed font
\"
%s
\"
, charset %d, height %d, weight %d, italic %d
\n
"
,
lf
->
lfFaceName
,
lf
->
lfCharSet
,
lf
->
lfHeight
,
lf
->
lfWeight
,
lf
->
lfItalic
);
lf
->
lfFaceName
,
lf
->
lfCharSet
,
lf
->
lfHeight
,
lf
->
lfWeight
,
lf
->
lfItalic
);
#endif
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
else
else
...
@@ -1897,10 +1896,9 @@ static INT CALLBACK arial_enum_procw(const LOGFONTW *lf, const TEXTMETRICW *tm,
...
@@ -1897,10 +1896,9 @@ static INT CALLBACK arial_enum_procw(const LOGFONTW *lf, const TEXTMETRICW *tm,
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
#if 0
if
(
0
)
/* Disabled to limit console spam */
trace("enumed font \"%s\", charset %d, height %d, weight %d, italic %d\n",
trace
(
"enumed font %s, charset %d, height %d, weight %d, italic %d
\n
"
,
lf->lfFaceName, lf->lfCharSet, lf->lfHeight, lf->lfWeight, lf->lfItalic);
wine_dbgstr_w
(
lf
->
lfFaceName
),
lf
->
lfCharSet
,
lf
->
lfHeight
,
lf
->
lfWeight
,
lf
->
lfItalic
);
#endif
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
else
else
...
...
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