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
9bf9a959
Commit
9bf9a959
authored
Apr 20, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Added a helper to avoid extra traces from one method calling another.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b07cfc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
font.c
dlls/dwrite/font.c
+16
-12
No files found.
dlls/dwrite/font.c
View file @
9bf9a959
...
...
@@ -605,25 +605,31 @@ static HRESULT WINAPI dwritefontface_GetDesignGlyphMetrics(IDWriteFontFace4 *ifa
return
S_OK
;
}
static
HRESULT
WINAPI
dwritefontface_GetGlyphIndices
(
IDWriteFontFace4
*
i
face
,
UINT32
const
*
codepoints
,
UINT32
count
,
UINT16
*
glyph_indice
s
)
static
HRESULT
fontface_get_glyphs
(
struct
dwrite_fontface
*
font
face
,
UINT32
const
*
codepoints
,
UINT32
count
,
UINT16
*
glyph
s
)
{
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace4
(
iface
);
TRACE
(
"(%p)->(%p %u %p)
\n
"
,
This
,
codepoints
,
count
,
glyph_indices
);
if
(
!
glyph_indices
)
if
(
!
glyphs
)
return
E_INVALIDARG
;
if
(
!
codepoints
)
{
memset
(
glyph
_indices
,
0
,
count
*
sizeof
(
UINT16
));
memset
(
glyph
s
,
0
,
count
*
sizeof
(
*
glyphs
));
return
E_INVALIDARG
;
}
freetype_get_glyphs
(
iface
,
This
->
charmap
,
codepoints
,
count
,
glyph_indice
s
);
freetype_get_glyphs
(
&
fontface
->
IDWriteFontFace4_iface
,
fontface
->
charmap
,
codepoints
,
count
,
glyph
s
);
return
S_OK
;
}
static
HRESULT
WINAPI
dwritefontface_GetGlyphIndices
(
IDWriteFontFace4
*
iface
,
UINT32
const
*
codepoints
,
UINT32
count
,
UINT16
*
glyphs
)
{
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace4
(
iface
);
TRACE
(
"(%p)->(%p %u %p)
\n
"
,
This
,
codepoints
,
count
,
glyphs
);
return
fontface_get_glyphs
(
This
,
codepoints
,
count
,
glyphs
);
}
static
HRESULT
WINAPI
dwritefontface_TryGetFontTable
(
IDWriteFontFace4
*
iface
,
UINT32
table_tag
,
const
void
**
table_data
,
UINT32
*
table_size
,
void
**
context
,
BOOL
*
exists
)
{
...
...
@@ -1161,13 +1167,11 @@ static BOOL WINAPI dwritefontface3_HasCharacter(IDWriteFontFace4 *iface, UINT32
{
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace4
(
iface
);
UINT16
index
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08x)
\n
"
,
This
,
ch
);
index
=
0
;
hr
=
IDWriteFontFace4_GetGlyphIndices
(
iface
,
&
ch
,
1
,
&
index
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
fontface_get_glyphs
(
This
,
&
ch
,
1
,
&
index
)))
return
FALSE
;
return
index
!=
0
;
...
...
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