Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3e548402
Commit
3e548402
authored
Dec 04, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add stub for GdipSetPenCompoundArray.
parent
0c954ef7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
1 deletion
+41
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
pen.c
dlls/gdiplus/pen.c
+11
-0
pen.c
dlls/gdiplus/tests/pen.c
+28
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
3e548402
...
...
@@ -564,7 +564,7 @@
@ stdcall GdipSetPathMarker(ptr)
@ stdcall GdipSetPenBrushFill(ptr ptr)
@ stdcall GdipSetPenColor(ptr long)
@ st
ub GdipSetPenCompoundArray
@ st
dcall GdipSetPenCompoundArray(ptr ptr long)
@ stdcall GdipSetPenCustomEndCap(ptr ptr)
@ stdcall GdipSetPenCustomStartCap(ptr ptr)
@ stdcall GdipSetPenDashArray(ptr ptr long)
...
...
dlls/gdiplus/pen.c
View file @
3e548402
...
...
@@ -409,6 +409,17 @@ GpStatus WINGDIPAPI GdipSetPenColor(GpPen *pen, ARGB argb)
return
GdipSetSolidFillColor
(((
GpSolidFill
*
)
pen
->
brush
),
argb
);
}
GpStatus
WINGDIPAPI
GdipSetPenCompoundArray
(
GpPen
*
pen
,
GDIPCONST
REAL
*
dash
,
INT
count
)
{
FIXME
(
"(%p, %p, %i): stub"
,
pen
,
dash
,
count
);
if
(
!
pen
||
!
dash
||
count
<
2
||
count
%
2
==
1
)
return
InvalidParameter
;
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipSetPenCustomEndCap
(
GpPen
*
pen
,
GpCustomLineCap
*
customCap
)
{
GpCustomLineCap
*
cap
;
...
...
dlls/gdiplus/tests/pen.c
View file @
3e548402
...
...
@@ -325,6 +325,33 @@ static void test_penfilltype(void)
GdipDeleteBrush
((
GpBrush
*
)
line
);
}
static
void
test_compoundarray
(
void
)
{
GpStatus
status
;
GpPen
*
pen
;
static
const
REAL
testvalues
[]
=
{
0
.
2
,
0
.
4
,
0
.
6
,
0
.
8
};
status
=
GdipSetPenCompoundArray
(
NULL
,
testvalues
,
4
);
expect
(
InvalidParameter
,
status
);
status
=
GdipCreatePen1
((
ARGB
)
0xffff00ff
,
10
.
0
f
,
UnitPixel
,
&
pen
);
expect
(
Ok
,
status
);
status
=
GdipSetPenCompoundArray
(
pen
,
NULL
,
4
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPenCompoundArray
(
pen
,
testvalues
,
3
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPenCompoundArray
(
pen
,
testvalues
,
0
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPenCompoundArray
(
pen
,
testvalues
,
-
2
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPenCompoundArray
(
pen
,
testvalues
,
4
);
todo_wine
expect
(
Ok
,
status
);
GdipDeletePen
(
pen
);
}
START_TEST
(
pen
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -345,6 +372,7 @@ START_TEST(pen)
test_dasharray
();
test_customcap
();
test_penfilltype
();
test_compoundarray
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
3e548402
...
...
@@ -480,6 +480,7 @@ GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen*,GpDashStyle*);
GpStatus
WINGDIPAPI
GdipGetPenMode
(
GpPen
*
,
GpPenAlignment
*
);
GpStatus
WINGDIPAPI
GdipSetPenBrushFill
(
GpPen
*
,
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipSetPenColor
(
GpPen
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetPenCompoundArray
(
GpPen
*
,
GDIPCONST
REAL
*
,
INT
);
GpStatus
WINGDIPAPI
GdipSetPenCustomEndCap
(
GpPen
*
,
GpCustomLineCap
*
);
GpStatus
WINGDIPAPI
GdipSetPenCustomStartCap
(
GpPen
*
,
GpCustomLineCap
*
);
GpStatus
WINGDIPAPI
GdipSetPenDashArray
(
GpPen
*
,
GDIPCONST
REAL
*
,
INT
);
...
...
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