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
a8a6f0bd
Commit
a8a6f0bd
authored
Feb 20, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Trace GetPaletteEntries() failure (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9b91b5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
font.c
dlls/dwrite/font.c
+7
-4
No files found.
dlls/dwrite/font.c
View file @
a8a6f0bd
...
...
@@ -4792,11 +4792,14 @@ static BOOL colorglyphenum_build_color_run(struct dwrite_colorglyphenum *glyphen
if
(
!
got_palette_index
)
{
colorrun
->
paletteIndex
=
glyphenum
->
glyphs
[
g
].
palette_index
;
/* use foreground color or request one from the font */
if
(
colorrun
->
paletteIndex
==
0xffff
)
memset
(
&
colorrun
->
runColor
,
0
,
sizeof
(
colorrun
->
runColor
));
else
IDWriteFontFace2_GetPaletteEntries
(
glyphenum
->
fontface
,
glyphenum
->
palette
,
colorrun
->
paletteIndex
,
memset
(
&
colorrun
->
runColor
,
0
,
sizeof
(
colorrun
->
runColor
));
if
(
colorrun
->
paletteIndex
!=
0xffff
)
{
HRESULT
hr
=
IDWriteFontFace2_GetPaletteEntries
(
glyphenum
->
fontface
,
glyphenum
->
palette
,
colorrun
->
paletteIndex
,
1
,
&
colorrun
->
runColor
);
if
(
FAILED
(
hr
))
WARN
(
"failed to get palette entry, fontface %p, palette %u, index %u, 0x%08x
\n
"
,
glyphenum
->
fontface
,
glyphenum
->
palette
,
colorrun
->
paletteIndex
,
hr
);
}
/* found a glyph position new color run starts from, origin is "original origin + distance to this glyph" */
colorrun
->
baselineOriginX
=
glyphenum
->
origin_x
+
get_glyph_origin
(
glyphenum
,
g
);
colorrun
->
baselineOriginY
=
glyphenum
->
origin_y
;
...
...
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