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
8360caab
Commit
8360caab
authored
Apr 16, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipAddPathLine2I.
parent
6ba525d8
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
graphicspath.c
dlls/gdiplus/graphicspath.c
+24
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8360caab
...
...
@@ -17,7 +17,7 @@
@ stdcall GdipAddPathEllipse(ptr long long long long)
@ stub GdipAddPathEllipseI
@ stdcall GdipAddPathLine2(ptr ptr long)
@ st
ub GdipAddPathLine2I
@ st
dcall GdipAddPathLine2I(ptr ptr long)
@ stub GdipAddPathLine
@ stdcall GdipAddPathLineI(ptr long long long long)
@ stdcall GdipAddPathPath(ptr ptr long)
...
...
dlls/gdiplus/graphicspath.c
View file @
8360caab
...
...
@@ -217,6 +217,30 @@ GpStatus WINGDIPAPI GdipAddPathLine2(GpPath *path, GDIPCONST GpPointF *points,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipAddPathLine2I
(
GpPath
*
path
,
GDIPCONST
GpPoint
*
points
,
INT
count
)
{
GpPointF
*
pointsF
;
INT
i
;
GpStatus
stat
;
if
(
count
<=
0
)
return
InvalidParameter
;
pointsF
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
if
(
!
pointsF
)
return
OutOfMemory
;
for
(
i
=
0
;
i
<
count
;
i
++
){
pointsF
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
pointsF
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
stat
=
GdipAddPathLine2
(
path
,
pointsF
,
count
);
GdipFree
(
pointsF
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipAddPathLineI
(
GpPath
*
path
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
)
{
INT
old_count
;
...
...
include/gdiplusflat.h
View file @
8360caab
...
...
@@ -188,6 +188,7 @@ GpStatus WINGDIPAPI GdipAddPathEllipse(GpPath*,REAL,REAL,REAL,REAL);
GpStatus
WINGDIPAPI
GdipAddPathEllipseI
(
GpPath
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathLine
(
GpPath
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathLine2
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathLine2I
(
GpPath
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathLineI
(
GpPath
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathPath
(
GpPath
*
,
GDIPCONST
GpPath
*
,
BOOL
);
GpStatus
WINGDIPAPI
GdipClonePath
(
GpPath
*
,
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