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
38138784
Commit
38138784
authored
Apr 24, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Handle more cases in GdipCreateBitmapFromGdiDib.
parent
800e9ff6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
image.c
dlls/gdiplus/image.c
+6
-0
image.c
dlls/gdiplus/tests/image.c
+4
-4
No files found.
dlls/gdiplus/image.c
View file @
38138784
...
...
@@ -1242,9 +1242,15 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromGdiDib(GDIPCONST BITMAPINFO* info,
case
8
:
format
=
PixelFormat8bppIndexed
;
break
;
case
16
:
format
=
PixelFormat16bppRGB555
;
break
;
case
24
:
format
=
PixelFormat24bppRGB
;
break
;
case
32
:
format
=
PixelFormat32bppRGB
;
break
;
default:
FIXME
(
"don't know how to handle %d bpp
\n
"
,
info
->
bmiHeader
.
biBitCount
);
*
bitmap
=
NULL
;
...
...
dlls/gdiplus/tests/image.c
View file @
38138784
...
...
@@ -188,8 +188,8 @@ static void test_FromGdiDib(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateBitmapFromGdiDib
(
bmi
,
buff
,
&
bm
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
expect
(
Ok
,
stat
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
if
(
stat
==
Ok
)
{
stat
=
GdipGetImagePixelFormat
((
GpImage
*
)
bm
,
&
format
);
...
...
@@ -214,8 +214,8 @@ static void test_FromGdiDib(void)
bmi
->
bmiHeader
.
biBitCount
=
16
;
stat
=
GdipCreateBitmapFromGdiDib
(
bmi
,
buff
,
&
bm
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
expect
(
Ok
,
stat
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
if
(
stat
==
Ok
)
{
stat
=
GdipGetImagePixelFormat
((
GpImage
*
)
bm
,
&
format
);
...
...
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