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
eeee536a
Commit
eeee536a
authored
May 16, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipImageGetFrameCount.
parent
007d642e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
image.c
dlls/gdiplus/image.c
+9
-8
image.c
dlls/gdiplus/tests/image.c
+1
-1
No files found.
dlls/gdiplus/image.c
View file @
eeee536a
...
...
@@ -2456,23 +2456,24 @@ static 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
)
{
static
int
calls
;
TRACE
(
"(%p,%s,%p)
\n
"
,
image
,
debugstr_guid
(
dimensionID
),
count
);
if
(
!
image
||
!
count
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"returning frame count of 1
\n
"
);
*
count
=
1
;
if
(
!
dimensionID
||
IsEqualGUID
(
dimensionID
,
&
image
->
format
)
||
IsEqualGUID
(
dimensionID
,
&
FrameDimensionPage
)
||
IsEqualGUID
(
dimensionID
,
&
FrameDimensionTime
))
{
*
count
=
image
->
frame_count
;
return
Ok
;
}
return
Ok
;
return
InvalidParameter
;
}
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsCount
(
GpImage
*
image
,
...
...
dlls/gdiplus/tests/image.c
View file @
eeee536a
...
...
@@ -2298,7 +2298,7 @@ static void test_multiframegif(void)
count
=
12345
;
stat
=
GdipImageGetFrameCount
((
GpImage
*
)
bmp
,
&
dimension
,
&
count
);
expect
(
Ok
,
stat
);
todo_wine
expect
(
2
,
count
);
expect
(
2
,
count
);
/* SelectActiveFrame overwrites our current data */
stat
=
GdipImageSelectActiveFrame
((
GpImage
*
)
bmp
,
&
dimension
,
1
);
...
...
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