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
b26d7ce8
Commit
b26d7ce8
authored
Aug 02, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreatePathGradient.
parent
490ca1ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
brush.c
dlls/gdiplus/brush.c
+40
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/brush.c
View file @
b26d7ce8
...
@@ -48,6 +48,46 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
...
@@ -48,6 +48,46 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipCreatePathGradient
(
GDIPCONST
GpPointF
*
points
,
INT
count
,
GpWrapMode
wrap
,
GpPathGradient
**
grad
)
{
COLORREF
col
=
ARGB2COLORREF
(
0xffffffff
);
if
(
!
points
||
!
grad
)
return
InvalidParameter
;
if
(
count
<=
0
)
return
OutOfMemory
;
*
grad
=
GdipAlloc
(
sizeof
(
GpPathGradient
));
if
(
!*
grad
)
return
OutOfMemory
;
(
*
grad
)
->
pathdata
.
Count
=
count
;
(
*
grad
)
->
pathdata
.
Points
=
GdipAlloc
(
count
*
sizeof
(
PointF
));
(
*
grad
)
->
pathdata
.
Types
=
GdipAlloc
(
count
);
if
(
!
(
*
grad
)
->
pathdata
.
Points
||
!
(
*
grad
)
->
pathdata
.
Types
){
GdipFree
((
*
grad
)
->
pathdata
.
Points
);
GdipFree
((
*
grad
)
->
pathdata
.
Types
);
GdipFree
(
*
grad
);
return
OutOfMemory
;
}
memcpy
((
*
grad
)
->
pathdata
.
Points
,
points
,
count
*
sizeof
(
PointF
));
memset
((
*
grad
)
->
pathdata
.
Types
,
PathPointTypeLine
,
count
);
(
*
grad
)
->
brush
.
lb
.
lbStyle
=
BS_SOLID
;
(
*
grad
)
->
brush
.
lb
.
lbColor
=
col
;
(
*
grad
)
->
brush
.
lb
.
lbHatch
=
0
;
(
*
grad
)
->
brush
.
gdibrush
=
CreateSolidBrush
(
col
);
(
*
grad
)
->
brush
.
bt
=
BrushTypePathGradient
;
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
wrap
;
return
Ok
;
}
/* 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 @
b26d7ce8
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
@ stub GdipCreatePath2
@ stub GdipCreatePath2
@ stub GdipCreatePath2I
@ stub GdipCreatePath2I
@ stdcall GdipCreatePath(long ptr)
@ stdcall GdipCreatePath(long ptr)
@ st
ub GdipCreatePathGradient
@ st
dcall GdipCreatePathGradient(ptr long long ptr)
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
@ stub GdipCreatePathGradientI
@ stub GdipCreatePathGradientI
@ stdcall GdipCreatePathIter(ptr ptr)
@ stdcall GdipCreatePathIter(ptr ptr)
...
...
include/gdiplusflat.h
View file @
b26d7ce8
...
@@ -88,6 +88,8 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
...
@@ -88,6 +88,8 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipCloneBrush
(
GpBrush
*
,
GpBrush
**
);
GpStatus
WINGDIPAPI
GdipCloneBrush
(
GpBrush
*
,
GpBrush
**
);
GpStatus
WINGDIPAPI
GdipCreatePathGradient
(
GDIPCONST
GpPointF
*
,
INT
,
GpWrapMode
,
GpPathGradient
**
);
GpStatus
WINGDIPAPI
GdipCreatePathGradientFromPath
(
GDIPCONST
GpPath
*
,
GpStatus
WINGDIPAPI
GdipCreatePathGradientFromPath
(
GDIPCONST
GpPath
*
,
GpPathGradient
**
);
GpPathGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
...
...
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