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
d020474c
Commit
d020474c
authored
Jul 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawBeziers.
parent
1ee3b0fa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
2 deletions
+52
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+48
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
d020474c
...
...
@@ -156,8 +156,8 @@
@ stdcall GdipDrawArcI(ptr ptr long long long long long long)
@ stdcall GdipDrawBezier(ptr ptr long long long long long long long long)
@ stdcall GdipDrawBezierI(ptr ptr long long long long long long long long)
@ st
ub GdipDrawBeziers
@ st
ub GdipDrawBeziersI
@ st
dcall GdipDrawBeziers(ptr ptr ptr long)
@ st
dcall GdipDrawBeziersI(ptr ptr ptr long)
@ stub GdipDrawCachedBitmap
@ stub GdipDrawClosedCurve2
@ stub GdipDrawClosedCurve2I
...
...
dlls/gdiplus/graphics.c
View file @
d020474c
...
...
@@ -997,6 +997,54 @@ GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics *graphics, GpPen *pen, INT x1,
return
retval
;
}
GpStatus
WINGDIPAPI
GdipDrawBeziers
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
INT
i
;
GpStatus
ret
;
if
(
!
graphics
||
!
pen
||
!
points
||
(
count
<=
0
))
return
InvalidParameter
;
for
(
i
=
0
;
i
<
floor
(
count
/
4
);
i
++
){
ret
=
GdipDrawBezier
(
graphics
,
pen
,
points
[
4
*
i
].
X
,
points
[
4
*
i
].
Y
,
points
[
4
*
i
+
1
].
X
,
points
[
4
*
i
+
1
].
Y
,
points
[
4
*
i
+
2
].
X
,
points
[
4
*
i
+
2
].
Y
,
points
[
4
*
i
+
3
].
X
,
points
[
4
*
i
+
3
].
Y
);
if
(
ret
!=
Ok
)
return
ret
;
}
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawBeziersI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPoint
*
points
,
INT
count
)
{
GpPointF
*
pts
;
GpStatus
ret
;
INT
i
;
if
(
!
graphics
||
!
pen
||
!
points
||
(
count
<=
0
))
return
InvalidParameter
;
pts
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
if
(
!
pts
)
return
OutOfMemory
;
for
(
i
=
0
;
i
<
count
;
i
++
){
pts
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
pts
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
ret
=
GdipDrawBeziers
(
graphics
,
pen
,
pts
,
count
);
GdipFree
(
pts
);
return
ret
;
}
GpStatus
WINGDIPAPI
GdipDrawCurve
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
...
...
include/gdiplusflat.h
View file @
d020474c
...
...
@@ -78,6 +78,8 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL
GpStatus
WINGDIPAPI
GdipDrawArcI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawBezierI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawBeziers
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawBeziersI
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawCurve
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawCurveI
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawCurve2
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
...
...
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