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
ebe2ac48
Commit
ebe2ac48
authored
Apr 11, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix a couple of problems with negative lfWidth test.
parent
9580c3f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
font.c
dlls/gdi32/tests/font.c
+4
-4
No files found.
dlls/gdi32/tests/font.c
View file @
ebe2ac48
...
...
@@ -1484,7 +1484,7 @@ static void test_text_metrics(const LOGFONTA *lf)
hfont_old
=
SelectObject
(
hdc
,
hfont
);
if
(
lf
->
lfWidth
>
0
)
{
HFONT
hfont2
;
HFONT
hfont2
,
hfont_prev
;
GLYPHMETRICS
gm1
,
gm2
;
LOGFONTA
lf2
=
*
lf
;
MAT2
mat2
=
{
{
0
,
1
},
{
0
,
0
},
{
0
,
0
},
{
0
,
1
}
};
...
...
@@ -1494,15 +1494,15 @@ static void test_text_metrics(const LOGFONTA *lf)
SetLastError
(
0xdeadbeef
);
hfont2
=
CreateFontIndirectA
(
&
lf2
);
ok
(
hfont
!=
0
,
"CreateFontIndirect error %u
\n
"
,
GetLastError
());
SelectObject
(
hdc
,
hfont2
);
ok
(
hfont
2
!=
0
,
"CreateFontIndirect error %u
\n
"
,
GetLastError
());
hfont_prev
=
SelectObject
(
hdc
,
hfont2
);
memset
(
&
gm1
,
0xaa
,
sizeof
(
gm1
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineA
(
hdc
,
'x'
,
GGO_METRICS
,
&
gm1
,
0
,
NULL
,
&
mat2
);
ok
(
ret
!=
GDI_ERROR
,
"GetGlyphOutline error 0x%x
\n
"
,
GetLastError
());
SelectObject
(
hdc
,
hfont
);
SelectObject
(
hdc
,
hfont
_prev
);
DeleteObject
(
hfont2
);
memset
(
&
gm2
,
0xbb
,
sizeof
(
gm2
));
...
...
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