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
8e1197c9
Commit
8e1197c9
authored
Dec 08, 2023
by
Brendan McGrath
Committed by
Alexandre Julliard
Dec 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Wrap at whitespace rather than soft break.
parent
90d934b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
text.c
dlls/user32/tests/text.c
+2
-2
text.c
dlls/user32/text.c
+2
-2
No files found.
dlls/user32/tests/text.c
View file @
8e1197c9
...
...
@@ -604,7 +604,7 @@ static void test_DrawTextCalcRect(void)
textheight
=
DrawTextW
(
hdc
,
wordbreak_text_colonW
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_WORDBREAK
);
ok
(
textheight
==
heightcheck
*
2
,
"Got unexpected textheight %d, expected %d.
\n
"
,
textheight
,
heightcheck
*
2
);
todo_wine
ok
(
rect
.
right
>
rect2
.
right
-
10
,
"Got unexpected textwdith %ld, expected larger than %ld.
\n
"
,
ok
(
rect
.
right
>
rect2
.
right
-
10
,
"Got unexpected textwdith %ld, expected larger than %ld.
\n
"
,
rect
.
right
,
rect2
.
right
-
10
);
SetRect
(
&
rect
,
0
,
0
,
200
,
1
);
...
...
@@ -618,7 +618,7 @@ static void test_DrawTextCalcRect(void)
textheight
=
DrawTextW
(
hdc
,
wordbreak_text_csbW
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_WORDBREAK
);
ok
(
textheight
==
heightcheck
*
2
,
"Got unexpected textheight %d, expected %d.
\n
"
,
textheight
,
heightcheck
*
2
);
todo_wine
ok
(
rect
.
right
>
rect2
.
right
-
10
,
"Got unexpected textwdith %ld, expected larger than %ld.
\n
"
,
ok
(
rect
.
right
>
rect2
.
right
-
10
,
"Got unexpected textwdith %ld, expected larger than %ld.
\n
"
,
rect
.
right
,
rect2
.
right
-
10
);
...
...
dlls/user32/text.c
View file @
8e1197c9
...
...
@@ -384,9 +384,9 @@ static void TEXT_WordBreak (HDC hdc, WCHAR *str, unsigned int max_str,
}
else
{
while
(
i
>
0
&&
!
sla
[(
--
i
)
+
1
].
f
SoftBreak
)
p
--
;
while
(
i
>
0
&&
!
sla
[(
--
i
)
+
1
].
f
WhiteSpace
)
p
--
;
p
--
;
word_fits
=
(
i
!=
0
||
sla
[
i
+
1
].
f
SoftBreak
);
word_fits
=
(
i
!=
0
||
sla
[
i
+
1
].
f
WhiteSpace
);
}
/* If there was one. */
...
...
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