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
1188579c
Commit
1188579c
authored
Mar 15, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use version neutral variable name.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d18bbe8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
font.c
dlls/dwrite/font.c
+4
-4
No files found.
dlls/dwrite/font.c
View file @
1188579c
...
...
@@ -4903,14 +4903,14 @@ static void glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis, DW
{
static
const
BYTE
masks
[
8
]
=
{
0x80
,
0x40
,
0x20
,
0x10
,
0x08
,
0x04
,
0x02
,
0x01
};
struct
dwrite_glyphbitmap
glyph_bitmap
;
IDWriteFontFace4
*
fontface
2
;
IDWriteFontFace4
*
fontface
;
D2D_POINT_2F
origin
;
UINT32
i
,
size
;
BOOL
is_rtl
;
HRESULT
hr
;
RECT
*
bbox
;
hr
=
IDWriteFontFace_QueryInterface
(
analysis
->
run
.
fontFace
,
&
IID_IDWriteFontFace4
,
(
void
**
)
&
fontface2
);
hr
=
IDWriteFontFace_QueryInterface
(
analysis
->
run
.
fontFace
,
&
IID_IDWriteFontFace4
,
(
void
**
)
&
fontface
);
if
(
FAILED
(
hr
))
{
WARN
(
"failed to get IDWriteFontFace4, 0x%08x
\n
"
,
hr
);
return
;
...
...
@@ -4925,7 +4925,7 @@ static void glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis, DW
is_rtl
=
analysis
->
run
.
bidiLevel
&
1
;
memset
(
&
glyph_bitmap
,
0
,
sizeof
(
glyph_bitmap
));
glyph_bitmap
.
fontface
=
fontface
2
;
glyph_bitmap
.
fontface
=
fontface
;
glyph_bitmap
.
emsize
=
analysis
->
run
.
fontEmSize
*
analysis
->
ppdip
;
glyph_bitmap
.
nohint
=
is_natural_rendering_mode
(
analysis
->
rendering_mode
);
glyph_bitmap
.
type
=
type
;
...
...
@@ -5013,7 +5013,7 @@ static void glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis, DW
origin
.
y
+=
advance
->
y
;
}
IDWriteFontFace4_Release
(
fontface
2
);
IDWriteFontFace4_Release
(
fontface
);
analysis
->
flags
|=
RUNANALYSIS_BITMAP_READY
;
...
...
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