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
00766538
Commit
00766538
authored
Jan 26, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Reuse linebreaking whitespace flag when filling cluster metrics.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b7f8578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
layout.c
dlls/dwrite/layout.c
+1
-4
No files found.
dlls/dwrite/layout.c
View file @
00766538
...
...
@@ -612,10 +612,7 @@ static inline void init_cluster_metrics(const struct dwrite_textlayout *layout,
metrics
->
canWrapLineAfter
=
breakcondition
==
DWRITE_BREAK_CONDITION_CAN_BREAK
||
breakcondition
==
DWRITE_BREAK_CONDITION_MUST_BREAK
;
if
(
metrics
->
length
==
1
)
{
WORD
type
=
0
;
GetStringTypeW
(
CT_CTYPE1
,
&
layout
->
str
[
position
],
1
,
&
type
);
metrics
->
isWhitespace
=
!!
(
type
&
C1_SPACE
);
metrics
->
isWhitespace
=
get_effective_breakpoint
(
layout
,
position
).
isWhitespace
;
metrics
->
isNewline
=
FALSE
/* FIXME */
;
metrics
->
isSoftHyphen
=
layout
->
str
[
position
]
==
0x00ad
/* Unicode Soft Hyphen */
;
}
...
...
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