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
d079b66b
Commit
d079b66b
authored
Jun 25, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid casting IWICBitmapFrameDecode to IWICBitmapSource.
parent
7f9230c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
image.c
dlls/gdiplus/image.c
+6
-3
No files found.
dlls/gdiplus/image.c
View file @
d079b66b
...
...
@@ -2676,12 +2676,14 @@ static GpStatus decode_image_wic(IStream* stream, REFCLSID clsid, UINT active_fr
if
(
SUCCEEDED
(
hr
))
{
IWICBitmapSource
*
bmp_source
;
IWICBitmapFrameDecode_QueryInterface
(
frame
,
&
IID_IWICBitmapSource
,
(
void
**
)
&
bmp_source
);
for
(
i
=
0
;
wic_pixel_formats
[
i
];
i
++
)
{
if
(
IsEqualGUID
(
&
wic_format
,
wic_pixel_formats
[
i
]))
{
source
=
(
IWICBitmapSource
*
)
frame
;
IWICBitmapSource_AddRef
(
source
);
source
=
bmp_source
;
gdip_format
=
wic_gdip_formats
[
i
];
break
;
}
...
...
@@ -2689,8 +2691,9 @@ static GpStatus decode_image_wic(IStream* stream, REFCLSID clsid, UINT active_fr
if
(
!
source
)
{
/* unknown format; fall back on 32bppARGB */
hr
=
WICConvertBitmapSource
(
&
GUID_WICPixelFormat32bppBGRA
,
(
IWICBitmapSource
*
)
fram
e
,
&
source
);
hr
=
WICConvertBitmapSource
(
&
GUID_WICPixelFormat32bppBGRA
,
bmp_sourc
e
,
&
source
);
gdip_format
=
PixelFormat32bppARGB
;
IWICBitmapSource_Release
(
bmp_source
);
}
}
...
...
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