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
836b4183
Commit
836b4183
authored
Apr 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipCreatePathGradientI.
parent
da76020e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
brush.c
dlls/gdiplus/brush.c
+28
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
No files found.
dlls/gdiplus/brush.c
View file @
836b4183
...
@@ -211,6 +211,34 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
...
@@ -211,6 +211,34 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipCreatePathGradientI
(
GDIPCONST
GpPoint
*
points
,
INT
count
,
GpWrapMode
wrap
,
GpPathGradient
**
grad
)
{
GpPointF
*
pointsF
;
GpStatus
ret
;
INT
i
;
if
(
!
points
||
!
grad
)
return
InvalidParameter
;
if
(
count
<=
0
)
return
OutOfMemory
;
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
;
}
ret
=
GdipCreatePathGradient
(
pointsF
,
count
,
wrap
,
grad
);
GdipFree
(
pointsF
);
return
ret
;
}
/* FIXME: path gradient brushes not truly supported (drawn as solid brushes) */
/* FIXME: path gradient brushes not truly supported (drawn as solid brushes) */
GpStatus
WINGDIPAPI
GdipCreatePathGradientFromPath
(
GDIPCONST
GpPath
*
path
,
GpStatus
WINGDIPAPI
GdipCreatePathGradientFromPath
(
GDIPCONST
GpPath
*
path
,
GpPathGradient
**
grad
)
GpPathGradient
**
grad
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
836b4183
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
@ stdcall GdipCreatePath(long ptr)
@ stdcall GdipCreatePath(long ptr)
@ stdcall GdipCreatePathGradient(ptr long long ptr)
@ stdcall GdipCreatePathGradient(ptr long long ptr)
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
@ st
ub GdipCreatePathGradientI
@ st
dcall GdipCreatePathGradientI(ptr long long ptr)
@ stdcall GdipCreatePathIter(ptr ptr)
@ stdcall GdipCreatePathIter(ptr ptr)
@ stdcall GdipCreatePen1(long long long ptr)
@ stdcall GdipCreatePen1(long long long ptr)
@ stdcall GdipCreatePen2(ptr long long ptr)
@ stdcall GdipCreatePen2(ptr long long ptr)
...
...
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