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
5734c2ed
Commit
5734c2ed
authored
Aug 06, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement GetPaletteEntryCount().
parent
20571725
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
dwrite_private.h
dlls/dwrite/dwrite_private.h
+1
-0
font.c
dlls/dwrite/font.c
+2
-2
opentype.c
dlls/dwrite/opentype.c
+6
-0
No files found.
dlls/dwrite/dwrite_private.h
View file @
5734c2ed
...
@@ -154,6 +154,7 @@ extern HRESULT opentype_get_font_strings_from_id(const void*,DWRITE_INFORMATIONA
...
@@ -154,6 +154,7 @@ extern HRESULT opentype_get_font_strings_from_id(const void*,DWRITE_INFORMATIONA
extern
HRESULT
opentype_get_typographic_features
(
IDWriteFontFace
*
,
UINT32
,
UINT32
,
UINT32
,
UINT32
*
,
DWRITE_FONT_FEATURE_TAG
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
opentype_get_typographic_features
(
IDWriteFontFace
*
,
UINT32
,
UINT32
,
UINT32
,
UINT32
*
,
DWRITE_FONT_FEATURE_TAG
*
)
DECLSPEC_HIDDEN
;
extern
BOOL
opentype_get_vdmx_size
(
const
void
*
,
INT
,
UINT16
*
,
UINT16
*
)
DECLSPEC_HIDDEN
;
extern
BOOL
opentype_get_vdmx_size
(
const
void
*
,
INT
,
UINT16
*
,
UINT16
*
)
DECLSPEC_HIDDEN
;
extern
UINT32
opentype_get_cpal_palettecount
(
const
void
*
)
DECLSPEC_HIDDEN
;
extern
UINT32
opentype_get_cpal_palettecount
(
const
void
*
)
DECLSPEC_HIDDEN
;
extern
UINT32
opentype_get_cpal_paletteentrycount
(
const
void
*
)
DECLSPEC_HIDDEN
;
enum
gasp_flags
{
enum
gasp_flags
{
GASP_GRIDFIT
=
0x0001
,
GASP_GRIDFIT
=
0x0001
,
...
...
dlls/dwrite/font.c
View file @
5734c2ed
...
@@ -964,8 +964,8 @@ static UINT32 WINAPI dwritefontface2_GetColorPaletteCount(IDWriteFontFace2 *ifac
...
@@ -964,8 +964,8 @@ static UINT32 WINAPI dwritefontface2_GetColorPaletteCount(IDWriteFontFace2 *ifac
static
UINT32
WINAPI
dwritefontface2_GetPaletteEntryCount
(
IDWriteFontFace2
*
iface
)
static
UINT32
WINAPI
dwritefontface2_GetPaletteEntryCount
(
IDWriteFontFace2
*
iface
)
{
{
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace2
(
iface
);
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace2
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
0
;
return
opentype_get_cpal_paletteentrycount
(
get_fontface_cpal
(
This
))
;
}
}
static
HRESULT
WINAPI
dwritefontface2_GetPaletteEntries
(
IDWriteFontFace2
*
iface
,
UINT32
palette_index
,
static
HRESULT
WINAPI
dwritefontface2_GetPaletteEntries
(
IDWriteFontFace2
*
iface
,
UINT32
palette_index
,
...
...
dlls/dwrite/opentype.c
View file @
5734c2ed
...
@@ -1428,3 +1428,9 @@ UINT32 opentype_get_cpal_palettecount(const void *cpal)
...
@@ -1428,3 +1428,9 @@ UINT32 opentype_get_cpal_palettecount(const void *cpal)
const
struct
CPAL_Header_0
*
header
=
(
const
struct
CPAL_Header_0
*
)
cpal
;
const
struct
CPAL_Header_0
*
header
=
(
const
struct
CPAL_Header_0
*
)
cpal
;
return
header
?
GET_BE_WORD
(
header
->
numPalette
)
:
0
;
return
header
?
GET_BE_WORD
(
header
->
numPalette
)
:
0
;
}
}
UINT32
opentype_get_cpal_paletteentrycount
(
const
void
*
cpal
)
{
const
struct
CPAL_Header_0
*
header
=
(
const
struct
CPAL_Header_0
*
)
cpal
;
return
header
?
GET_BE_WORD
(
header
->
numPaletteEntries
)
:
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