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
5038845c
Commit
5038845c
authored
Jul 26, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipSetCustomLineCapStrokeJoin + tests.
parent
2848100e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
customlinecap.c
dlls/gdiplus/customlinecap.c
+5
-4
customlinecap.c
dlls/gdiplus/tests/customlinecap.c
+19
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/customlinecap.c
View file @
5038845c
...
...
@@ -175,15 +175,16 @@ GpStatus WINGDIPAPI GdipSetCustomLineCapBaseInset(GpCustomLineCap* custom,
return
NotImplemented
;
}
/*FIXME: LineJoin completely ignored now */
GpStatus
WINGDIPAPI
GdipSetCustomLineCapStrokeJoin
(
GpCustomLineCap
*
custom
,
GpLineJoin
join
)
{
static
int
calls
;
if
(
!
custom
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
custom
->
join
=
join
;
return
NotImplemented
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetCustomLineCapWidthScale
(
GpCustomLineCap
*
custom
,
...
...
dlls/gdiplus/tests/customlinecap.c
View file @
5038845c
...
...
@@ -87,12 +87,31 @@ static void test_linejoin(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetCustomLineCapStrokeJoin
(
NULL
,
&
join
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipSetCustomLineCapStrokeJoin
(
NULL
,
LineJoinBevel
);
expect
(
InvalidParameter
,
stat
);
/* LineJoinMiter is default */
stat
=
GdipGetCustomLineCapStrokeJoin
(
custom
,
&
join
);
expect
(
Ok
,
stat
);
expect
(
LineJoinMiter
,
join
);
/* set/get */
stat
=
GdipSetCustomLineCapStrokeJoin
(
custom
,
LineJoinBevel
);
expect
(
Ok
,
stat
);
stat
=
GdipGetCustomLineCapStrokeJoin
(
custom
,
&
join
);
expect
(
Ok
,
stat
);
expect
(
LineJoinBevel
,
join
);
stat
=
GdipSetCustomLineCapStrokeJoin
(
custom
,
LineJoinRound
);
expect
(
Ok
,
stat
);
stat
=
GdipGetCustomLineCapStrokeJoin
(
custom
,
&
join
);
expect
(
Ok
,
stat
);
expect
(
LineJoinRound
,
join
);
stat
=
GdipSetCustomLineCapStrokeJoin
(
custom
,
LineJoinMiterClipped
);
expect
(
Ok
,
stat
);
stat
=
GdipGetCustomLineCapStrokeJoin
(
custom
,
&
join
);
expect
(
Ok
,
stat
);
expect
(
LineJoinMiterClipped
,
join
);
GdipDeleteCustomLineCap
(
custom
);
GdipDeletePath
(
path
);
}
...
...
include/gdiplusflat.h
View file @
5038845c
...
...
@@ -327,6 +327,7 @@ GpStatus WINGDIPAPI GdipSetCustomLineCapStrokeCaps(GpCustomLineCap*,GpLineCap,
GpLineCap
);
GpStatus
WINGDIPAPI
GdipGetCustomLineCapBaseCap
(
GpCustomLineCap
*
,
GpLineCap
*
);
GpStatus
WINGDIPAPI
GdipGetCustomLineCapStrokeJoin
(
GpCustomLineCap
*
,
GpLineJoin
*
);
GpStatus
WINGDIPAPI
GdipSetCustomLineCapStrokeJoin
(
GpCustomLineCap
*
,
GpLineJoin
);
GpStatus
WINGDIPAPI
GdipBitmapGetPixel
(
GpBitmap
*
,
INT
,
INT
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipBitmapSetPixel
(
GpBitmap
*
,
INT
,
INT
,
ARGB
);
...
...
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