Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
8b9f5342
Commit
8b9f5342
authored
17 years ago
by
Evan Stade
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gdiplus: Implemented GdipDrawBezier.
parent
b8d1560a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/gdiplus/gdiplus.spec
+1
-1
1 addition, 1 deletion
dlls/gdiplus/gdiplus.spec
dlls/gdiplus/graphics.c
+24
-0
24 additions, 0 deletions
dlls/gdiplus/graphics.c
include/gdiplusflat.h
+2
-0
2 additions, 0 deletions
include/gdiplusflat.h
with
27 additions
and
1 deletion
dlls/gdiplus/gdiplus.spec
+
1
−
1
View file @
8b9f5342
...
...
@@ -144,7 +144,7 @@
@ stub GdipDisposeImageAttributes
@ stub GdipDrawArc
@ stub GdipDrawArcI
@ st
ub
GdipDrawBezier
@ st
dcall
GdipDrawBezier
(ptr ptr long long long long long long long long)
@ stub GdipDrawBezierI
@ stub GdipDrawBeziers
@ stub GdipDrawBeziersI
...
...
This diff is collapsed.
Click to expand it.
dlls/gdiplus/graphics.c
+
24
−
0
View file @
8b9f5342
...
...
@@ -27,6 +27,11 @@
#include
"gdiplus_private.h"
#include
"wine/debug.h"
static
inline
INT
roundr
(
REAL
x
)
{
return
(
INT
)
floor
(
x
+
0
.
5
);
}
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
hdc
,
GpGraphics
**
graphics
)
{
if
(
hdc
==
NULL
)
...
...
@@ -66,6 +71,25 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
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
)
{
HGDIOBJ
old_pen
;
POINT
pt
[
4
]
=
{{
roundr
(
x1
),
roundr
(
y1
)},
{
roundr
(
x2
),
roundr
(
y2
)},
{
roundr
(
x3
),
roundr
(
y3
)},
{
roundr
(
x4
),
roundr
(
y4
)}};
if
(
!
graphics
||
!
pen
)
return
InvalidParameter
;
old_pen
=
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
PolyBezier
(
graphics
->
hdc
,
pt
,
4
);
SelectObject
(
graphics
->
hdc
,
old_pen
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
)
{
...
...
This diff is collapsed.
Click to expand it.
include/gdiplusflat.h
+
2
−
0
View file @
8b9f5342
...
...
@@ -31,6 +31,8 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHWND
(
HWND
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment