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
204253b6
Commit
204253b6
authored
Mar 28, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add test for GdipDrawDriverString.
parent
319a748f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+32
-0
gdiplusenums.h
include/gdiplusenums.h
+9
-0
No files found.
dlls/gdiplus/tests/graphics.c
View file @
204253b6
...
...
@@ -1954,6 +1954,8 @@ static void test_GdipDrawString(void)
LOGFONTA
logfont
;
HDC
hdc
=
GetDC
(
hwnd
);
static
const
WCHAR
string
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
0
};
static
const
PointF
positions
[
4
]
=
{{
0
,
0
},
{
1
,
1
},
{
2
,
2
},
{
3
,
3
}};
GpMatrix
*
matrix
;
memset
(
&
logfont
,
0
,
sizeof
(
logfont
));
strcpy
(
logfont
.
lfFaceName
,
"Arial"
);
...
...
@@ -1985,6 +1987,36 @@ static void test_GdipDrawString(void)
status
=
GdipDrawString
(
graphics
,
string
,
4
,
fnt
,
&
rect
,
format
,
brush
);
expect
(
Ok
,
status
);
status
=
GdipCreateMatrix
(
&
matrix
);
expect
(
Ok
,
status
);
todo_wine
{
status
=
GdipDrawDriverString
(
NULL
,
string
,
4
,
fnt
,
brush
,
positions
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
NULL
,
4
,
fnt
,
brush
,
positions
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
NULL
,
brush
,
positions
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
fnt
,
NULL
,
positions
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
fnt
,
brush
,
NULL
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
fnt
,
brush
,
positions
,
DriverStringOptionsCmapLookup
|
0x10
,
matrix
);
expect
(
Ok
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
fnt
,
brush
,
positions
,
DriverStringOptionsCmapLookup
,
NULL
);
expect
(
Ok
,
status
);
status
=
GdipDrawDriverString
(
graphics
,
string
,
4
,
fnt
,
brush
,
positions
,
DriverStringOptionsCmapLookup
,
matrix
);
expect
(
Ok
,
status
);
}
GdipDeleteMatrix
(
matrix
);
GdipDeleteGraphics
(
graphics
);
GdipDeleteBrush
(
brush
);
GdipDeleteFont
(
fnt
);
...
...
include/gdiplusenums.h
View file @
204253b6
...
...
@@ -42,6 +42,14 @@ enum BrushType
BrushTypeLinearGradient
=
4
};
enum
DriverStringOptions
{
DriverStringOptionsCmapLookup
=
1
,
DriverStringOptionsVertical
=
2
,
DriverStringOptionsRealizedAdvance
=
4
,
DriverStringOptionsLimitSubpixel
=
4
};
enum
FillMode
{
FillModeAlternate
=
0
,
...
...
@@ -707,6 +715,7 @@ enum EmfPlusRecordType {
typedef
enum
Unit
Unit
;
typedef
enum
BrushType
BrushType
;
typedef
enum
DriverStringOptions
DriverStringOptions
;
typedef
enum
FillMode
FillMode
;
typedef
enum
LineCap
LineCap
;
typedef
enum
PathPointType
PathPointType
;
...
...
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