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
84a36f27
Commit
84a36f27
authored
Jul 18, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use more intuitive naming for layout stages.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b22dfdc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
layout.c
dlls/dwrite/layout.c
+11
-11
No files found.
dlls/dwrite/layout.c
View file @
84a36f27
...
...
@@ -224,10 +224,10 @@ struct layout_cluster {
};
enum
layout_recompute_mask
{
RECOMPUTE_
NOMINAL_RUNS
=
1
<<
0
,
RECOMPUTE_MINIMAL_WIDTH
=
1
<<
1
,
RECOMPUTE_
EFFECTIVE_RUNS
=
1
<<
2
,
RECOMPUTE_EVERYTHING
=
0xffff
RECOMPUTE_
CLUSTERS
=
1
<<
0
,
RECOMPUTE_MINIMAL_WIDTH
=
1
<<
1
,
RECOMPUTE_
LINES
=
1
<<
2
,
RECOMPUTE_EVERYTHING
=
0xffff
};
struct
dwrite_textlayout
{
...
...
@@ -1037,7 +1037,7 @@ static HRESULT layout_compute(struct dwrite_textlayout *layout)
{
HRESULT
hr
;
if
(
!
(
layout
->
recompute
&
RECOMPUTE_
NOMINAL_RUN
S
))
if
(
!
(
layout
->
recompute
&
RECOMPUTE_
CLUSTER
S
))
return
S_OK
;
/* nominal breakpoints are evaluated only once, because string never changes */
...
...
@@ -1076,7 +1076,7 @@ static HRESULT layout_compute(struct dwrite_textlayout *layout)
}
}
layout
->
recompute
&=
~
RECOMPUTE_
NOMINAL_RUN
S
;
layout
->
recompute
&=
~
RECOMPUTE_
CLUSTER
S
;
return
hr
;
}
...
...
@@ -1714,7 +1714,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
UINT32
i
,
start
,
line
,
textpos
;
HRESULT
hr
;
if
(
!
(
layout
->
recompute
&
RECOMPUTE_
EFFECTIVE_RUN
S
))
if
(
!
(
layout
->
recompute
&
RECOMPUTE_
LINE
S
))
return
S_OK
;
hr
=
layout_compute
(
layout
);
...
...
@@ -1910,7 +1910,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
layout
->
metrics
.
heightIncludingTrailingWhitespace
=
layout
->
metrics
.
height
;
/* FIXME: not true for vertical text */
layout
->
recompute
&=
~
RECOMPUTE_
EFFECTIVE_RUN
S
;
layout
->
recompute
&=
~
RECOMPUTE_
LINE
S
;
return
hr
;
}
...
...
@@ -3765,7 +3765,7 @@ static HRESULT WINAPI dwritetextformat_layout_SetTextAlignment(IDWriteTextFormat
return
hr
;
/* if layout is not ready there's nothing to align */
if
(
changed
&&
!
(
This
->
recompute
&
RECOMPUTE_
EFFECTIVE_RUN
S
))
if
(
changed
&&
!
(
This
->
recompute
&
RECOMPUTE_
LINE
S
))
layout_apply_text_alignment
(
This
);
return
S_OK
;
...
...
@@ -3784,7 +3784,7 @@ static HRESULT WINAPI dwritetextformat_layout_SetParagraphAlignment(IDWriteTextF
return
hr
;
/* if layout is not ready there's nothing to align */
if
(
changed
&&
!
(
This
->
recompute
&
RECOMPUTE_
EFFECTIVE_RUN
S
))
if
(
changed
&&
!
(
This
->
recompute
&
RECOMPUTE_
LINE
S
))
layout_apply_par_alignment
(
This
);
return
S_OK
;
...
...
@@ -3803,7 +3803,7 @@ static HRESULT WINAPI dwritetextformat_layout_SetWordWrapping(IDWriteTextFormat1
return
hr
;
if
(
changed
)
This
->
recompute
|=
RECOMPUTE_
EFFECTIVE_RUN
S
;
This
->
recompute
|=
RECOMPUTE_
LINE
S
;
return
S_OK
;
}
...
...
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