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
b6ab64e4
Commit
b6ab64e4
authored
Mar 31, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use textlen instead of len.
Use textheight as the return value of DrawTextA.
parent
fdd2c765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
text.c
dlls/user/tests/text.c
+6
-6
No files found.
dlls/user/tests/text.c
View file @
b6ab64e4
...
...
@@ -36,7 +36,7 @@ static void test_DrawTextCalcRect(void)
LOGFONTA
lf
;
const
char
text
[]
=
"Example text for testing DrawText in "
"MM_HIENGLISH mode"
;
INT
len
;
INT
textlen
,
textheight
;
RECT
rect
=
{
0
,
0
,
100
,
0
};
BOOL
ret
;
...
...
@@ -47,7 +47,7 @@ static void test_DrawTextCalcRect(void)
hdc
=
GetDC
(
hwnd
);
ok
(
hdc
!=
0
,
"GetDC error %lu
\n
"
,
GetLastError
());
trace
(
"hdc %p
\n
"
,
hdc
);
len
=
lstrlenA
(
text
);
text
len
=
lstrlenA
(
text
);
/* LOGFONT initialization */
memset
(
&
lf
,
0
,
sizeof
(
lf
));
...
...
@@ -66,10 +66,10 @@ static void test_DrawTextCalcRect(void)
GetLastError
());
hOldFont
=
SelectObject
(
hdc
,
hFont
);
len
=
DrawTextA
(
hdc
,
text
,
len
,
&
rect
,
DT_CALCRECT
|
textheight
=
DrawTextA
(
hdc
,
text
,
text
len
,
&
rect
,
DT_CALCRECT
|
DT_EXTERNALLEADING
|
DT_WORDBREAK
|
DT_NOCLIP
|
DT_LEFT
|
DT_NOPREFIX
);
ok
(
len
,
"DrawTextA error %lu
\n
"
,
GetLastError
());
ok
(
textheight
,
"DrawTextA error %lu
\n
"
,
GetLastError
());
trace
(
"MM_HIENGLISH rect.bottom %ld
\n
"
,
rect
.
bottom
);
todo_wine
ok
(
rect
.
bottom
<
0
,
"In MM_HIENGLISH, DrawText with "
...
...
@@ -90,10 +90,10 @@ static void test_DrawTextCalcRect(void)
GetLastError
());
hOldFont
=
SelectObject
(
hdc
,
hFont
);
len
=
DrawTextA
(
hdc
,
text
,
len
,
&
rect
,
DT_CALCRECT
|
textheight
=
DrawTextA
(
hdc
,
text
,
text
len
,
&
rect
,
DT_CALCRECT
|
DT_EXTERNALLEADING
|
DT_WORDBREAK
|
DT_NOCLIP
|
DT_LEFT
|
DT_NOPREFIX
);
ok
(
len
,
"DrawTextA error %lu
\n
"
,
GetLastError
());
ok
(
textheight
,
"DrawTextA error %lu
\n
"
,
GetLastError
());
trace
(
"MM_TEXT rect.bottom %ld
\n
"
,
rect
.
bottom
);
ok
(
rect
.
bottom
>
0
,
"In MM_TEXT, DrawText with DT_CALCRECT "
...
...
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