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
c42f8794
Commit
c42f8794
authored
Jun 19, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawArc.
parent
2a2a3b4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+25
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
c42f8794
...
...
@@ -142,7 +142,7 @@
@ stub GdipDeleteStringFormat
@ stub GdipDisposeImage
@ stub GdipDisposeImageAttributes
@ st
ub GdipDrawArc
@ st
dcall GdipDrawArc(ptr ptr long long long long long long)
@ stub GdipDrawArcI
@ stdcall GdipDrawBezier(ptr ptr long long long long long long long long)
@ stub GdipDrawBezierI
...
...
dlls/gdiplus/graphics.c
View file @
c42f8794
...
...
@@ -116,6 +116,31 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
HGDIOBJ
old_pen
;
REAL
x_0
,
y_0
,
x_1
,
y_1
,
x_2
,
y_2
;
if
(
!
graphics
||
!
pen
)
return
InvalidParameter
;
old_pen
=
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
x_0
=
x
+
(
width
/
2
.
0
);
y_0
=
y
+
(
height
/
2
.
0
);
deg2xy
(
startAngle
+
sweepAngle
,
x_0
,
y_0
,
&
x_1
,
&
y_1
);
deg2xy
(
startAngle
,
x_0
,
y_0
,
&
x_2
,
&
y_2
);
Arc
(
graphics
->
hdc
,
roundr
(
x
),
roundr
(
y
),
roundr
(
x
+
width
),
roundr
(
y
+
height
),
roundr
(
x_1
),
roundr
(
y_1
),
roundr
(
x_2
),
roundr
(
y_2
));
SelectObject
(
graphics
->
hdc
,
old_pen
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
,
REAL
x3
,
REAL
y3
,
REAL
x4
,
REAL
y4
)
{
...
...
include/gdiplusflat.h
View file @
c42f8794
...
...
@@ -31,6 +31,7 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHWND
(
HWND
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
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