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
a0f9a251
Commit
a0f9a251
authored
Jul 16, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Use predefined WICBitmapPaletteTypeFixedBW palette instead of a hand-made one.
parent
a9d0f897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
converter.c
dlls/windowscodecs/converter.c
+9
-14
No files found.
dlls/windowscodecs/converter.c
View file @
a0f9a251
...
...
@@ -103,24 +103,19 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
IWICPalette
*
palette
;
UINT
actualcolors
;
if
(
source_format
==
format_1bppIndexed
)
{
res
=
PaletteImpl_Create
(
&
palette
);
if
(
FAILED
(
res
))
return
res
;
res
=
PaletteImpl_Create
(
&
palette
);
if
(
FAILED
(
res
))
return
res
;
if
(
source_format
==
format_1bppIndexed
)
res
=
IWICBitmapSource_CopyPalette
(
This
->
source
,
palette
);
if
(
SUCCEEDED
(
res
))
res
=
IWICPalette_GetColors
(
palette
,
2
,
colors
,
&
actualcolors
);
else
res
=
IWICPalette_InitializePredefined
(
palette
,
WICBitmapPaletteTypeFixedBW
,
FALSE
);
IWICPalette_Release
(
palette
);
if
(
SUCCEEDED
(
res
))
res
=
IWICPalette_GetColors
(
palette
,
2
,
colors
,
&
actualcolors
);
if
(
FAILED
(
res
))
return
res
;
}
else
{
colors
[
0
]
=
0xff000000
;
colors
[
1
]
=
0xffffffff
;
}
IWICPalette_Release
(
palette
);
if
(
FAILED
(
res
))
return
res
;
srcstride
=
(
prc
->
Width
+
7
)
/
8
;
srcdatasize
=
srcstride
*
prc
->
Height
;
...
...
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