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
fe2f6b77
Commit
fe2f6b77
authored
May 31, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Properly report drawing effect in DrawGlyphRun()/DrawInlineObject().
parent
89e1a5fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
layout.c
dlls/dwrite/layout.c
+5
-2
No files found.
dlls/dwrite/layout.c
View file @
fe2f6b77
...
...
@@ -139,6 +139,7 @@ struct layout_run {
struct
inline_object_run
object
;
struct
regular_layout_run
regular
;
}
u
;
IUnknown
*
effect
;
};
struct
layout_effective_run
{
...
...
@@ -556,6 +557,7 @@ static HRESULT layout_compute_runs(struct dwrite_textlayout *layout)
r
->
u
.
object
.
object
=
range
->
object
;
r
->
u
.
object
.
length
=
range
->
range
.
length
;
r
->
effect
=
range
->
effect
;
list_add_tail
(
&
layout
->
runs
,
&
r
->
entry
);
continue
;
}
...
...
@@ -615,6 +617,7 @@ static HRESULT layout_compute_runs(struct dwrite_textlayout *layout)
}
range
=
get_layout_range_by_pos
(
layout
,
run
->
descr
.
textPosition
);
r
->
effect
=
range
->
effect
;
hr
=
IDWriteFontCollection_FindFamilyName
(
range
->
collection
,
range
->
fontfamily
,
&
index
,
&
exists
);
if
(
FAILED
(
hr
)
||
!
exists
)
{
...
...
@@ -2091,7 +2094,7 @@ static HRESULT WINAPI dwritetextlayout_Draw(IDWriteTextLayout2 *iface,
DWRITE_MEASURING_MODE_NATURAL
,
&
glyph_run
,
&
descr
,
NULL
/* FIXME */
);
run
->
run
->
effect
);
}
/* 2. Inline objects */
...
...
@@ -2103,7 +2106,7 @@ static HRESULT WINAPI dwritetextlayout_Draw(IDWriteTextLayout2 *iface,
inlineobject
->
object
,
inlineobject
->
is_sideways
,
inlineobject
->
is_rtl
,
NULL
/* FIXME */
);
run
->
run
->
effect
);
}
/* TODO: 3. Underlines */
...
...
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