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
0313f887
Commit
0313f887
authored
Sep 04, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Disable alpha channel support for BMP images.
parent
91e0ee26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
image.c
dlls/gdiplus/image.c
+14
-1
No files found.
dlls/gdiplus/image.c
View file @
0313f887
...
...
@@ -1509,7 +1509,20 @@ static GpStatus decode_image_icon(IStream* stream, REFCLSID clsid, GpImage **ima
static
GpStatus
decode_image_bmp
(
IStream
*
stream
,
REFCLSID
clsid
,
GpImage
**
image
)
{
return
decode_image_wic
(
stream
,
&
CLSID_WICBmpDecoder
,
image
);
GpStatus
status
;
GpBitmap
*
bitmap
;
status
=
decode_image_wic
(
stream
,
&
CLSID_WICBmpDecoder
,
image
);
bitmap
=
(
GpBitmap
*
)
*
image
;
if
(
status
==
Ok
&&
bitmap
->
format
==
PixelFormat32bppARGB
)
{
/* WIC supports bmp files with alpha, but gdiplus does not */
bitmap
->
format
=
PixelFormat32bppRGB
;
}
return
status
;
}
static
GpStatus
decode_image_jpeg
(
IStream
*
stream
,
REFCLSID
clsid
,
GpImage
**
image
)
...
...
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