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
433b7c04
Commit
433b7c04
authored
Aug 13, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use aliased outline threshold for GDI target.
parent
204d46c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gdiinterop.c
dlls/dwrite/gdiinterop.c
+12
-2
No files found.
dlls/dwrite/gdiinterop.c
View file @
433b7c04
...
...
@@ -308,6 +308,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
IDWriteGlyphRunAnalysis
*
analysis
;
DWRITE_RENDERING_MODE
rendermode
;
DWRITE_TEXTURE_TYPE
texturetype
;
IDWriteFontFace1
*
fontface1
;
RECT
target
,
bounds
;
HRESULT
hr
;
...
...
@@ -319,8 +320,17 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
if
(
!
This
->
dib
.
ptr
)
return
S_OK
;
hr
=
IDWriteFontFace_GetRecommendedRenderingMode
(
run
->
fontFace
,
run
->
fontEmSize
,
This
->
ppdip
,
measuring_mode
,
params
,
&
rendermode
);
hr
=
IDWriteFontFace_QueryInterface
(
run
->
fontFace
,
&
IID_IDWriteFontFace1
,
(
void
**
)
&
fontface1
);
if
(
hr
==
S_OK
)
{
hr
=
IDWriteFontFace1_GetRecommendedRenderingMode
(
fontface1
,
run
->
fontEmSize
,
This
->
ppdip
*
96
.
0
f
,
This
->
ppdip
*
96
.
0
f
,
NULL
,
run
->
isSideways
,
DWRITE_OUTLINE_THRESHOLD_ALIASED
,
measuring_mode
,
&
rendermode
);
IDWriteFontFace1_Release
(
fontface1
);
}
else
hr
=
IDWriteFontFace_GetRecommendedRenderingMode
(
run
->
fontFace
,
run
->
fontEmSize
,
This
->
ppdip
,
measuring_mode
,
params
,
&
rendermode
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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