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
3ece08ff
Commit
3ece08ff
authored
Mar 12, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add pixel format test for transparent non-animated gif.
parent
02d4c6b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
image.c
dlls/gdiplus/tests/image.c
+30
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
3ece08ff
...
...
@@ -1335,6 +1335,12 @@ static const unsigned char gifimage[35] = {
0xff
,
0xff
,
0xff
,
0x2c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x02
,
0x02
,
0x44
,
0x01
,
0x00
,
0x3b
};
/* 1x1 pixel transparent gif */
static
const
unsigned
char
transparentgif
[]
=
{
0x47
,
0x49
,
0x46
,
0x38
,
0x39
,
0x61
,
0x01
,
0x00
,
0x01
,
0x00
,
0xf0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x21
,
0xf9
,
0x04
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x2c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x02
,
0x02
,
0x44
,
0x01
,
0x00
,
0x3b
};
/* 1x1 pixel bmp */
static
const
unsigned
char
bmpimage
[
66
]
=
{
0x42
,
0x4d
,
0x42
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x3e
,
0x00
,
0x00
,
0x00
,
0x28
,
0x00
,
...
...
@@ -2621,6 +2627,30 @@ static void test_multiframegif(void)
GdipDisposeImage
((
GpImage
*
)
bmp
);
IStream_Release
(
stream
);
/* Test with a non-animated transparent gif */
hglob
=
GlobalAlloc
(
0
,
sizeof
(
transparentgif
));
data
=
GlobalLock
(
hglob
);
memcpy
(
data
,
transparentgif
,
sizeof
(
transparentgif
));
GlobalUnlock
(
hglob
);
hres
=
CreateStreamOnHGlobal
(
hglob
,
TRUE
,
&
stream
);
ok
(
hres
==
S_OK
,
"Failed to create a stream
\n
"
);
stat
=
GdipCreateBitmapFromStream
(
stream
,
&
bmp
);
IStream_Release
(
stream
);
ok
(
stat
==
Ok
,
"Failed to create a Bitmap
\n
"
);
stat
=
GdipGetImagePixelFormat
((
GpImage
*
)
bmp
,
&
pixel_format
);
expect
(
Ok
,
stat
);
expect
(
PixelFormat8bppIndexed
,
pixel_format
);
count
=
12345
;
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bmp
,
&
dimension
,
&
count
);
expect
(
Ok
,
stat
);
expect
(
1
,
count
);
GdipDisposeImage
((
GpImage
*
)
bmp
);
/* Test frame dispose methods */
hglob
=
GlobalAlloc
(
0
,
sizeof
(
gifanimation2
));
data
=
GlobalLock
(
hglob
);
...
...
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