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
e66a2f6d
Commit
e66a2f6d
authored
Oct 07, 2010
by
Joel Holdsworth
Committed by
Alexandre Julliard
Oct 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs/tests: Added test for GifFrameDecode_GetResolution.
parent
9c1ab84e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
bmpformat.c
dlls/windowscodecs/tests/bmpformat.c
+11
-2
No files found.
dlls/windowscodecs/tests/bmpformat.c
View file @
e66a2f6d
...
...
@@ -1042,7 +1042,7 @@ static void test_createfromstream(void)
/* 1x1 pixel gif, missing trailer */
static
unsigned
char
gifimage_notrailer
[]
=
{
0x47
,
0x49
,
0x46
,
0x38
,
0x37
,
0x61
,
0x01
,
0x00
,
0x01
,
0x00
,
0x80
,
0x00
,
0x
00
,
0xff
,
0xff
,
0xff
,
0x47
,
0x49
,
0x46
,
0x38
,
0x37
,
0x61
,
0x01
,
0x00
,
0x01
,
0x00
,
0x80
,
0x00
,
0x
71
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x2c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x02
,
0x02
,
0x44
,
0x01
,
0x00
};
...
...
@@ -1054,6 +1054,7 @@ static void test_gif_notrailer(void)
HRESULT
hr
;
IWICStream
*
gifstream
;
IWICBitmapFrameDecode
*
framedecode
;
double
dpiX
=
0
.
0
,
dpiY
=
0
.
0
;
UINT
framecount
;
hr
=
CoCreateInstance
(
&
CLSID_WICImagingFactory
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -1086,7 +1087,15 @@ static void test_gif_notrailer(void)
{
hr
=
IWICBitmapDecoder_GetFrame
(
decoder
,
0
,
&
framedecode
);
ok
(
hr
==
S_OK
,
"GetFrame failed, hr=%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IWICBitmapFrameDecode_Release
(
framedecode
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICBitmapFrameDecode_GetResolution
(
framedecode
,
&
dpiX
,
&
dpiY
);
ok
(
SUCCEEDED
(
hr
),
"GetResolution failed, hr=%x
\n
"
,
hr
);
ok
(
dpiX
==
48
.
0
,
"expected dpiX=48.0, got %f
\n
"
,
dpiX
);
ok
(
dpiY
==
96
.
0
,
"expected dpiY=96.0, got %f
\n
"
,
dpiY
);
IWICBitmapFrameDecode_Release
(
framedecode
);
}
}
if
(
SUCCEEDED
(
hr
))
...
...
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