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
ebf31c0a
Commit
ebf31c0a
authored
Jul 13, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix palette flags for a not indexed 1-bpp image.
parent
eca10741
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
image.c
dlls/gdiplus/image.c
+3
-0
image.c
dlls/gdiplus/tests/image.c
+0
-1
No files found.
dlls/gdiplus/image.c
View file @
ebf31c0a
...
...
@@ -2983,6 +2983,7 @@ static GpStatus decode_image_wic(IStream* stream, REFCLSID clsid, UINT active_fr
gdip_format
=
PixelFormat32bppARGB
;
IWICBitmapSource_Release
(
bmp_source
);
}
TRACE
(
"%s => %#x
\n
"
,
wine_dbgstr_guid
(
&
wic_format
),
gdip_format
);
}
if
(
SUCCEEDED
(
hr
))
/* got source */
...
...
@@ -3063,6 +3064,8 @@ end:
bitmap
->
image
.
frame_count
=
frame_count
;
bitmap
->
image
.
current_frame
=
active_frame
;
bitmap
->
image
.
stream
=
stream
;
if
(
IsEqualGUID
(
&
wic_format
,
&
GUID_WICPixelFormatBlackWhite
))
bitmap
->
image
.
palette_flags
=
0
;
/* Pin the source stream */
IStream_AddRef
(
stream
);
}
...
...
dlls/gdiplus/tests/image.c
View file @
ebf31c0a
...
...
@@ -3340,7 +3340,6 @@ static void test_tiff_palette(void)
status
=
GdipGetImagePalette
(
image
,
&
palette
.
pal
,
size
);
expect
(
Ok
,
status
);
todo_wine
expect
(
0
,
palette
.
pal
.
Flags
);
expect
(
2
,
palette
.
pal
.
Count
);
if
(
palette
.
pal
.
Count
==
2
)
...
...
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