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
4513fb38
Commit
4513fb38
authored
Jun 19, 2008
by
Petr Dlouhý
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Stub implementation of GdipImageGetFrameDimensionsCount + test.
parent
30e6b81d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
1 deletion
+42
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+13
-0
image.c
dlls/gdiplus/tests/image.c
+27
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
4513fb38
...
...
@@ -407,7 +407,7 @@
@ stub GdipGraphicsSetAbort
@ stub GdipImageForceValidation
@ stdcall GdipImageGetFrameCount(ptr ptr ptr)
@ st
ub GdipImageGetFrameDimensionsCount
@ st
dcall GdipImageGetFrameDimensionsCount(ptr ptr)
@ stdcall GdipImageGetFrameDimensionsList(ptr ptr long)
@ stub GdipImageRotateFlip
@ stdcall GdipImageSelectActiveFrame(ptr ptr long)
...
...
dlls/gdiplus/image.c
View file @
4513fb38
...
...
@@ -688,6 +688,19 @@ GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsCount
(
GpImage
*
image
,
UINT
*
count
)
{
if
(
!
image
||
!
count
)
return
InvalidParameter
;
*
count
=
1
;
FIXME
(
"stub
\n
"
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsList
(
GpImage
*
image
,
GUID
*
dimensionIDs
,
UINT
count
)
{
...
...
dlls/gdiplus/tests/image.c
View file @
4513fb38
...
...
@@ -106,6 +106,32 @@ static void test_GetImageDimension(void)
GdipDisposeImage
((
GpImage
*
)
bm
);
}
static
void
test_GdipImageGetFrameDimensionsCount
(
void
)
{
GpBitmap
*
bm
;
GpStatus
stat
;
const
REAL
WIDTH
=
10
.
0
,
HEIGHT
=
20
.
0
;
UINT
w
;
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
WIDTH
,
HEIGHT
,
0
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
Ok
,
stat
);
ok
((
GpBitmap
*
)
0xdeadbeef
!=
bm
,
"Expected bitmap to not be 0xdeadbeef
\n
"
);
ok
(
NULL
!=
bm
,
"Expected bitmap to not be NULL
\n
"
);
stat
=
GdipImageGetFrameDimensionsCount
(
NULL
,
&
w
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipImageGetFrameDimensionsCount
((
GpImage
*
)
bm
,
NULL
);
expect
(
InvalidParameter
,
stat
);
w
=
-
1
;
stat
=
GdipImageGetFrameDimensionsCount
((
GpImage
*
)
bm
,
&
w
);
expect
(
Ok
,
stat
);
expect
(
1
,
w
);
GdipDisposeImage
((
GpImage
*
)
bm
);
}
static
void
test_LoadingImages
(
void
)
{
GpStatus
stat
;
...
...
@@ -466,6 +492,7 @@ START_TEST(image)
test_Scan0
();
test_GetImageDimension
();
test_GdipImageGetFrameDimensionsCount
();
test_LoadingImages
();
test_SavingImages
();
test_encoders
();
...
...
include/gdiplusflat.h
View file @
4513fb38
...
...
@@ -318,6 +318,7 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromStream(IStream*,MetafileHeader*);
GpStatus
WINGDIPAPI
GdipGetMetafileHeaderFromWmf
(
HMETAFILE
,
GDIPCONST
WmfPlaceableFileHeader
*
,
MetafileHeader
*
);
GpStatus
WINGDIPAPI
GdipGetPropertyItemSize
(
GpImage
*
,
PROPID
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsCount
(
GpImage
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameDimensionsList
(
GpImage
*
,
GUID
*
,
UINT
);
GpStatus
WINGDIPAPI
GdipImageSelectActiveFrame
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
);
GpStatus
WINGDIPAPI
GdipLoadImageFromFile
(
GDIPCONST
WCHAR
*
,
GpImage
**
);
...
...
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