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
3cf9d949
Commit
3cf9d949
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 HasAlpha for palettes.
parent
cf8a26af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
palette.c
dlls/windowscodecs/palette.c
+17
-2
No files found.
dlls/windowscodecs/palette.c
View file @
3cf9d949
...
...
@@ -225,8 +225,23 @@ static HRESULT WINAPI PaletteImpl_IsGrayscale(IWICPalette *iface, BOOL *pfIsGray
static
HRESULT
WINAPI
PaletteImpl_HasAlpha
(
IWICPalette
*
iface
,
BOOL
*
pfHasAlpha
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pfHasAlpha
);
return
E_NOTIMPL
;
PaletteImpl
*
This
=
(
PaletteImpl
*
)
iface
;
int
i
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pfHasAlpha
);
if
(
!
pfHasAlpha
)
return
E_INVALIDARG
;
*
pfHasAlpha
=
FALSE
;
for
(
i
=
0
;
i
<
This
->
count
;
i
++
)
if
((
This
->
colors
[
i
]
&
0xff000000
)
!=
0xff000000
)
{
*
pfHasAlpha
=
TRUE
;
break
;
}
return
S_OK
;
}
static
const
IWICPaletteVtbl
PaletteImpl_Vtbl
=
{
...
...
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