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
03b6c5e8
Commit
03b6c5e8
authored
May 09, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipGetImageFlags simple stub with test.
parent
388caf32
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
image.c
dlls/gdiplus/image.c
+12
-0
image.c
dlls/gdiplus/tests/image.c
+19
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
03b6c5e8
...
...
@@ -286,7 +286,7 @@
@ stdcall GdipGetImageDimension(ptr ptr ptr)
@ stdcall GdipGetImageEncoders(long long ptr)
@ stdcall GdipGetImageEncodersSize(ptr ptr)
@ st
ub GdipGetImageFlags
@ st
dcall GdipGetImageFlags(ptr ptr)
@ stdcall GdipGetImageGraphicsContext(ptr ptr)
@ stdcall GdipGetImageHeight(ptr ptr)
@ stdcall GdipGetImageHorizontalResolution(ptr ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
03b6c5e8
...
...
@@ -149,6 +149,7 @@ struct GpCustomLineCap{
struct
GpImage
{
IPicture
*
picture
;
ImageType
type
;
UINT
flags
;
};
struct
GpMetafile
{
...
...
dlls/gdiplus/image.c
View file @
03b6c5e8
...
...
@@ -384,6 +384,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
}
(
*
bitmap
)
->
image
.
type
=
ImageTypeBitmap
;
(
*
bitmap
)
->
image
.
flags
=
ImageFlagsNone
;
(
*
bitmap
)
->
width
=
width
;
(
*
bitmap
)
->
height
=
height
;
(
*
bitmap
)
->
format
=
format
;
...
...
@@ -789,6 +790,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
}
(
*
image
)
->
picture
=
pic
;
(
*
image
)
->
flags
=
ImageFlagsNone
;
return
Ok
;
}
...
...
@@ -1108,3 +1110,13 @@ GpStatus WINGDIPAPI GdipSetEffectParameters(CGpEffect *effect,
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetImageFlags
(
GpImage
*
image
,
UINT
*
flags
)
{
if
(
!
image
||
!
flags
)
return
InvalidParameter
;
*
flags
=
image
->
flags
;
return
Ok
;
}
dlls/gdiplus/tests/image.c
View file @
03b6c5e8
...
...
@@ -417,6 +417,24 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
GlobalFree
(
hbm
);
}
static
void
test_GdipGetImageFlags
(
void
)
{
GpImage
*
img
;
GpStatus
stat
;
UINT
flags
;
img
=
(
GpImage
*
)
0xdeadbeef
;
stat
=
GdipGetImageFlags
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetImageFlags
(
NULL
,
&
flags
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetImageFlags
(
img
,
NULL
);
expect
(
InvalidParameter
,
stat
);
}
START_TEST
(
image
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -436,6 +454,7 @@ START_TEST(image)
test_encoders
();
test_LockBits
();
test_GdipCreateBitmapFromHBITMAP
();
test_GdipGetImageFlags
();
GdiplusShutdown
(
gdiplusToken
);
}
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