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
5e29e37a
Commit
5e29e37a
authored
Aug 01, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipDrawLine.
parent
0d45cd02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+24
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
5e29e37a
...
...
@@ -185,7 +185,7 @@
@ stub GdipDrawImageRectI
@ stub GdipDrawImageRectRect
@ stub GdipDrawImageRectRectI
@ st
ub GdipDrawLine
@ st
dcall GdipDrawLine(ptr ptr long long long long)
@ stdcall GdipDrawLineI(ptr ptr long long long long)
@ stdcall GdipDrawLines(ptr ptr ptr long)
@ stub GdipDrawLinesI
...
...
dlls/gdiplus/graphics.c
View file @
5e29e37a
...
...
@@ -1076,6 +1076,30 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
)
{
INT
save_state
;
GpPointF
pt
[
2
];
GpStatus
retval
;
if
(
!
pen
||
!
graphics
)
return
InvalidParameter
;
pt
[
0
].
X
=
x1
;
pt
[
0
].
Y
=
y1
;
pt
[
1
].
X
=
x2
;
pt
[
1
].
Y
=
y2
;
save_state
=
prepare_dc
(
graphics
,
pen
);
retval
=
draw_polyline
(
graphics
,
pen
,
pt
,
2
,
TRUE
);
restore_dc
(
graphics
,
save_state
);
return
retval
;
}
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
)
{
...
...
include/gdiplusflat.h
View file @
5e29e37a
...
...
@@ -60,6 +60,7 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,RE
GpStatus
WINGDIPAPI
GdipDrawImagePointsRect
(
GpGraphics
*
,
GpImage
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
,
REAL
,
REAL
,
REAL
,
GpUnit
,
GDIPCONST
GpImageAttributes
*
,
DrawImageAbort
,
VOID
*
);
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
graphics
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawLines
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawPath
(
GpGraphics
*
,
GpPen
*
,
GpPath
*
);
...
...
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