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
818420a3
Commit
818420a3
authored
Mar 15, 2010
by
Justin Chevrier
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Basic implementation of GdipImageGetFrameCount with updated tests.
parent
94820ff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
image.c
dlls/gdiplus/image.c
+6
-3
image.c
dlls/gdiplus/tests/image.c
+6
-6
No files found.
dlls/gdiplus/image.c
View file @
818420a3
...
...
@@ -2196,6 +2196,7 @@ struct image_format_dimension image_format_dimensions[] =
{
NULL
}
};
/* FIXME: Need to handle multi-framed images */
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
image
,
GDIPCONST
GUID
*
dimensionID
,
UINT
*
count
)
{
...
...
@@ -2203,13 +2204,15 @@ GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
TRACE
(
"(%p,%s,%p)
\n
"
,
image
,
debugstr_guid
(
dimensionID
),
count
);
if
(
!
image
||
!
dimensionID
||
!
count
)
if
(
!
image
||
!
count
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"
not implemented
\n
"
);
FIXME
(
"
returning frame count of 1
\n
"
);
return
NotImplemented
;
*
count
=
1
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsCount
(
GpImage
*
image
,
...
...
dlls/gdiplus/tests/image.c
View file @
818420a3
...
...
@@ -237,12 +237,12 @@ static void test_GdipImageGetFrameDimensionsCount(void)
}
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bm
,
NULL
,
&
count
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
count
=
12345
;
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bm
,
&
dimension
,
&
count
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
expect
(
1
,
count
);
expect
(
Ok
,
stat
);
expect
(
1
,
count
);
GdipBitmapSetPixel
(
bm
,
0
,
0
,
0xffffffff
);
...
...
@@ -1601,7 +1601,7 @@ static void test_multiframegif(void)
count
=
12345
;
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bmp
,
&
dimension
,
&
count
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
todo_wine
expect
(
2
,
count
);
/* SelectActiveFrame overwrites our current data */
...
...
@@ -1675,8 +1675,8 @@ static void test_multiframegif(void)
count
=
12345
;
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bmp
,
&
dimension
,
&
count
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
expect
(
1
,
count
);
expect
(
Ok
,
stat
);
expect
(
1
,
count
);
GdipDisposeImage
((
GpImage
*
)
bmp
);
IStream_Release
(
stream
);
...
...
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