Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a44dfc58
Commit
a44dfc58
authored
Jul 09, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_d3d_render_target_DrawGlyphRun().
parent
0dcc9ead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
1 deletion
+46
-1
render_target.c
dlls/d2d1/render_target.c
+46
-1
No files found.
dlls/d2d1/render_target.c
View file @
a44dfc58
...
...
@@ -826,8 +826,53 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_DrawGlyphRun(ID2D1RenderTarg
D2D1_POINT_2F
baseline_origin
,
const
DWRITE_GLYPH_RUN
*
glyph_run
,
ID2D1Brush
*
brush
,
DWRITE_MEASURING_MODE
measuring_mode
)
{
FIXME
(
"iface %p, baseline_origin {%.8e, %.8e}, glyph_run %p, brush %p, measuring_mode %#x stub!
\n
"
,
struct
d2d_d3d_render_target
*
render_target
=
impl_from_ID2D1RenderTarget
(
iface
);
D2D1_MATRIX_3X2_F
*
transform
,
prev_transform
;
ID2D1PathGeometry
*
geometry
;
ID2D1GeometrySink
*
sink
;
HRESULT
hr
;
TRACE
(
"iface %p, baseline_origin {%.8e, %.8e}, glyph_run %p, brush %p, measuring_mode %#x.
\n
"
,
iface
,
baseline_origin
.
x
,
baseline_origin
.
y
,
glyph_run
,
brush
,
measuring_mode
);
if
(
measuring_mode
)
FIXME
(
"Ignoring measuring mode %#x.
\n
"
,
measuring_mode
);
if
(
FAILED
(
hr
=
ID2D1Factory_CreatePathGeometry
(
render_target
->
factory
,
&
geometry
)))
{
ERR
(
"Failed to create geometry, hr %#x.
\n
"
,
hr
);
return
;
}
if
(
FAILED
(
hr
=
ID2D1PathGeometry_Open
(
geometry
,
&
sink
)))
{
ERR
(
"Failed to open geometry sink, hr %#x.
\n
"
,
hr
);
ID2D1PathGeometry_Release
(
geometry
);
return
;
}
if
(
FAILED
(
hr
=
IDWriteFontFace_GetGlyphRunOutline
(
glyph_run
->
fontFace
,
glyph_run
->
fontEmSize
,
glyph_run
->
glyphIndices
,
glyph_run
->
glyphAdvances
,
glyph_run
->
glyphOffsets
,
glyph_run
->
glyphCount
,
glyph_run
->
isSideways
,
glyph_run
->
bidiLevel
&
1
,
(
IDWriteGeometrySink
*
)
sink
)))
{
ERR
(
"Failed to get glyph run outline, hr %#x.
\n
"
,
hr
);
ID2D1GeometrySink_Release
(
sink
);
ID2D1PathGeometry_Release
(
geometry
);
return
;
}
if
(
FAILED
(
hr
=
ID2D1GeometrySink_Close
(
sink
)))
ERR
(
"Failed to close geometry sink, hr %#x.
\n
"
,
hr
);
ID2D1GeometrySink_Release
(
sink
);
transform
=
&
render_target
->
drawing_state
.
transform
;
prev_transform
=
*
transform
;
transform
->
_31
+=
baseline_origin
.
x
*
transform
->
_11
+
baseline_origin
.
y
*
transform
->
_21
;
transform
->
_32
+=
baseline_origin
.
x
*
transform
->
_12
+
baseline_origin
.
y
*
transform
->
_22
;
ID2D1RenderTarget_FillGeometry
(
iface
,
(
ID2D1Geometry
*
)
geometry
,
brush
,
NULL
);
*
transform
=
prev_transform
;
ID2D1PathGeometry_Release
(
geometry
);
}
static
void
STDMETHODCALLTYPE
d2d_d3d_render_target_SetTransform
(
ID2D1RenderTarget
*
iface
,
...
...
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