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
f6f04f6e
Commit
f6f04f6e
authored
Jun 21, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawLines.
parent
e20625e5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+21
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
f6f04f6e
...
...
@@ -176,7 +176,7 @@
@ stub GdipDrawImageRectRectI
@ stub GdipDrawLine
@ stdcall GdipDrawLineI(ptr ptr long long long long)
@ st
ub GdipDrawLines
@ st
dcall GdipDrawLines(ptr ptr ptr long)
@ stub GdipDrawLinesI
@ stub GdipDrawPath
@ stdcall GdipDrawPie(ptr ptr long long long long long long)
...
...
dlls/gdiplus/graphics.c
View file @
f6f04f6e
...
...
@@ -259,6 +259,27 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawLines
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
HGDIOBJ
old_obj
;
INT
i
;
if
(
!
pen
||
!
graphics
||
(
count
<
2
))
return
InvalidParameter
;
old_obj
=
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
MoveToEx
(
graphics
->
hdc
,
roundr
(
points
[
0
].
X
),
roundr
(
points
[
0
].
Y
),
NULL
);
for
(
i
=
1
;
i
<
count
;
i
++
){
LineTo
(
graphics
->
hdc
,
roundr
(
points
[
i
].
X
),
roundr
(
points
[
i
].
Y
));
}
SelectObject
(
graphics
->
hdc
,
old_obj
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
...
...
include/gdiplusflat.h
View file @
f6f04f6e
...
...
@@ -38,6 +38,7 @@ GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawCurve2
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawLines
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
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