Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ed2d0df4
Commit
ed2d0df4
authored
May 14, 2020
by
Vincent Povirk
Committed by
Alexandre Julliard
May 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Don't set a palette when loading non-indexed images.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4ef9874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
image.c
dlls/gdiplus/image.c
+6
-6
No files found.
dlls/gdiplus/image.c
View file @
ed2d0df4
...
...
@@ -58,11 +58,11 @@ static const struct
{
&
GUID_WICPixelFormat4bppIndexed
,
PixelFormat4bppIndexed
,
WICBitmapPaletteTypeFixedHalftone8
},
{
&
GUID_WICPixelFormat8bppIndexed
,
PixelFormat8bppIndexed
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat8bppGray
,
PixelFormat8bppIndexed
,
WICBitmapPaletteTypeFixedGray256
},
{
&
GUID_WICPixelFormat16bppBGR555
,
PixelFormat16bppRGB555
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat24bppBGR
,
PixelFormat24bppRGB
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat32bppBGR
,
PixelFormat32bppRGB
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat32bppBGRA
,
PixelFormat32bppARGB
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat32bppPBGRA
,
PixelFormat32bppPARGB
,
WICBitmapPaletteTypeFixedHalftone256
},
{
&
GUID_WICPixelFormat16bppBGR555
,
PixelFormat16bppRGB555
,
0
},
{
&
GUID_WICPixelFormat24bppBGR
,
PixelFormat24bppRGB
,
0
},
{
&
GUID_WICPixelFormat32bppBGR
,
PixelFormat32bppRGB
,
0
},
{
&
GUID_WICPixelFormat32bppBGRA
,
PixelFormat32bppARGB
,
0
},
{
&
GUID_WICPixelFormat32bppPBGRA
,
PixelFormat32bppPARGB
,
0
},
{
NULL
}
};
...
...
@@ -82,7 +82,7 @@ static ColorPalette *get_palette(IWICBitmapFrameDecode *frame, WICBitmapPaletteT
hr
=
WINCODEC_ERR_PALETTEUNAVAILABLE
;
if
(
frame
)
hr
=
IWICBitmapFrameDecode_CopyPalette
(
frame
,
wic_palette
);
if
(
hr
!=
S_OK
)
if
(
hr
!=
S_OK
&&
palette_type
!=
0
)
{
TRACE
(
"using predefined palette %#x
\n
"
,
palette_type
);
hr
=
IWICPalette_InitializePredefined
(
wic_palette
,
palette_type
,
FALSE
);
...
...
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