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
d923d78e
Commit
d923d78e
authored
Sep 07, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Partially implemented GdipTestControl.
parent
932e95c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
1 deletion
+44
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+21
-0
image.c
dlls/gdiplus/tests/image.c
+12
-0
gdiplusenums.h
include/gdiplusenums.h
+8
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
d923d78e
...
...
@@ -602,7 +602,7 @@
@ stdcall GdipStartPathFigure(ptr)
@ stdcall GdipStringFormatGetGenericDefault(ptr)
@ stdcall GdipStringFormatGetGenericTypographic(ptr)
@ st
ub GdipTestControl
@ st
dcall GdipTestControl(long ptr)
@ stdcall GdipTransformMatrixPoints(ptr ptr long)
@ stdcall GdipTransformMatrixPointsI(ptr ptr long)
@ stdcall GdipTransformPath(ptr ptr)
...
...
dlls/gdiplus/image.c
View file @
d923d78e
...
...
@@ -1280,3 +1280,24 @@ GpStatus WINGDIPAPI GdipGetImageFlags(GpImage *image, UINT *flags)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipTestControl
(
GpTestControlEnum
control
,
void
*
param
)
{
TRACE
(
"(%d, %p)
\n
"
,
control
,
param
);
switch
(
control
){
case
TestControlForceBilinear
:
if
(
param
)
FIXME
(
"TestControlForceBilinear not handled
\n
"
);
break
;
case
TestControlNoICM
:
if
(
param
)
FIXME
(
"TestControlNoICM not handled
\n
"
);
break
;
case
TestControlGetBuildNumber
:
*
((
DWORD
*
)
param
)
=
3102
;
break
;
}
return
Ok
;
}
dlls/gdiplus/tests/image.c
View file @
d923d78e
...
...
@@ -518,6 +518,17 @@ static void test_GdipCloneImage(void)
expect
(
Ok
,
stat
);
}
static
void
test_testcontrol
(
void
)
{
GpStatus
stat
;
DWORD
param
;
param
=
0
;
stat
=
GdipTestControl
(
TestControlGetBuildNumber
,
&
param
);
expect
(
Ok
,
stat
);
ok
(
param
!=
0
,
"Build number expected, got %u
\n
"
,
param
);
}
START_TEST
(
image
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -540,6 +551,7 @@ START_TEST(image)
test_GdipCreateBitmapFromHBITMAP
();
test_GdipGetImageFlags
();
test_GdipCloneImage
();
test_testcontrol
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusenums.h
View file @
d923d78e
...
...
@@ -329,6 +329,13 @@ enum CoordinateSpace
CoordinateSpaceDevice
};
enum
GpTestControlEnum
{
TestControlForceBilinear
=
0
,
TestControlNoICM
=
1
,
TestControlGetBuildNumber
=
2
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -364,6 +371,7 @@ typedef enum ImageCodecFlags ImageCodecFlags;
typedef
enum
CombineMode
CombineMode
;
typedef
enum
FlushIntention
FlushIntention
;
typedef
enum
CoordinateSpace
CoordinateSpace
;
typedef
enum
GpTestControlEnum
GpTestControlEnum
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
d923d78e
...
...
@@ -537,6 +537,8 @@ GpStatus WINGDIPAPI GdipSetAdjustableArrowCapHeight(GpAdjustableArrowCap*,REAL);
GpStatus
WINGDIPAPI
GdipSetAdjustableArrowCapMiddleInset
(
GpAdjustableArrowCap
*
,
REAL
);
GpStatus
WINGDIPAPI
GdipSetAdjustableArrowCapWidth
(
GpAdjustableArrowCap
*
,
REAL
);
GpStatus
WINGDIPAPI
GdipTestControl
(
GpTestControlEnum
,
void
*
);
#ifdef __cplusplus
}
#endif
...
...
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