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
6ede7a11
Commit
6ede7a11
authored
Feb 15, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Create a window for justification tests that generate output
instead of painting over the desktop.
parent
795b4018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
font.c
dlls/gdi32/tests/font.c
+9
-3
No files found.
dlls/gdi32/tests/font.c
View file @
6ede7a11
...
...
@@ -998,10 +998,11 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
static
void
test_SetTextJustification
(
void
)
{
HDC
hdc
=
GetDC
(
0
)
;
RECT
clientArea
=
{
0
,
0
,
400
,
400
}
;
HDC
hdc
;
RECT
clientArea
;
LOGFONTA
lf
;
HFONT
hfont
;
HWND
hwnd
;
static
char
testText
[]
=
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut "
...
...
@@ -1011,6 +1012,10 @@ static void test_SetTextJustification(void)
"nulla pariatur. Excepteur sint occaecat cupidatat non proident, "
"sunt in culpa qui officia deserunt mollit anim id est laborum."
;
hwnd
=
CreateWindowExA
(
0
,
"static"
,
""
,
WS_POPUP
,
0
,
0
,
400
,
400
,
0
,
0
,
0
,
NULL
);
GetClientRect
(
hwnd
,
&
clientArea
);
hdc
=
GetDC
(
hwnd
);
memset
(
&
lf
,
0
,
sizeof
lf
);
lf
.
lfCharSet
=
ANSI_CHARSET
;
lf
.
lfClipPrecision
=
CLIP_DEFAULT_PRECIS
;
...
...
@@ -1024,7 +1029,8 @@ static void test_SetTextJustification(void)
testJustification
(
hdc
,
testText
,
&
clientArea
);
DeleteObject
(
hfont
);
ReleaseDC
(
0
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
DestroyWindow
(
hwnd
);
}
static
void
test_font_charset
(
void
)
...
...
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