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
cf8a26af
Commit
cf8a26af
authored
Jul 02, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IsBlackWhite and IsGrayscale for palettes.
parent
9a6400bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
palette.c
dlls/windowscodecs/palette.c
+31
-4
No files found.
dlls/windowscodecs/palette.c
View file @
cf8a26af
...
...
@@ -186,14 +186,41 @@ static HRESULT WINAPI PaletteImpl_GetColors(IWICPalette *iface, UINT colorCount,
static
HRESULT
WINAPI
PaletteImpl_IsBlackWhite
(
IWICPalette
*
iface
,
BOOL
*
pfIsBlackWhite
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pfIsBlackWhite
);
return
E_NOTIMPL
;
PaletteImpl
*
This
=
(
PaletteImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pfIsBlackWhite
);
if
(
!
pfIsBlackWhite
)
return
E_INVALIDARG
;
if
(
This
->
type
==
WICBitmapPaletteTypeFixedBW
)
*
pfIsBlackWhite
=
TRUE
;
else
*
pfIsBlackWhite
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
PaletteImpl_IsGrayscale
(
IWICPalette
*
iface
,
BOOL
*
pfIsGrayscale
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pfIsGrayscale
);
return
E_NOTIMPL
;
PaletteImpl
*
This
=
(
PaletteImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pfIsGrayscale
);
if
(
!
pfIsGrayscale
)
return
E_INVALIDARG
;
switch
(
This
->
type
)
{
case
WICBitmapPaletteTypeFixedBW
:
case
WICBitmapPaletteTypeFixedGray4
:
case
WICBitmapPaletteTypeFixedGray16
:
case
WICBitmapPaletteTypeFixedGray256
:
*
pfIsGrayscale
=
TRUE
;
break
;
default:
*
pfIsGrayscale
=
FALSE
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
PaletteImpl_HasAlpha
(
IWICPalette
*
iface
,
BOOL
*
pfHasAlpha
)
...
...
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