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
9a9c857b
Commit
9a9c857b
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 GdipG/SetPathGradientCenterPoint.
parent
7929ba8d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
brush.c
dlls/gdiplus/brush.c
+29
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/brush.c
View file @
9a9c857b
...
...
@@ -114,6 +114,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
wrap
;
(
*
grad
)
->
gamma
=
FALSE
;
(
*
grad
)
->
center
.
X
=
0
.
0
;
(
*
grad
)
->
center
.
Y
=
0
.
0
;
return
Ok
;
}
...
...
@@ -154,6 +156,9 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
WrapModeClamp
;
(
*
grad
)
->
gamma
=
FALSE
;
/* FIXME: this should be set to the "centroid" of the path by default */
(
*
grad
)
->
center
.
X
=
0
.
0
;
(
*
grad
)
->
center
.
Y
=
0
.
0
;
return
Ok
;
}
...
...
@@ -208,6 +213,18 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterPoint
(
GpPathGradient
*
grad
,
GpPointF
*
point
)
{
if
(
!
grad
||
!
point
)
return
InvalidParameter
;
point
->
X
=
grad
->
center
.
X
;
point
->
Y
=
grad
->
center
.
Y
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
*
gamma
)
{
...
...
@@ -269,6 +286,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterPoint
(
GpPathGradient
*
grad
,
GpPointF
*
point
)
{
if
(
!
grad
||
!
point
)
return
InvalidParameter
;
grad
->
center
.
X
=
point
->
X
;
grad
->
center
.
Y
=
point
->
Y
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
gamma
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
9a9c857b
...
...
@@ -328,7 +328,7 @@
@ stub GdipGetPathGradientBlend
@ stub GdipGetPathGradientBlendCount
@ stub GdipGetPathGradientCenterColor
@ st
ub GdipGetPathGradientCenterPoint
@ st
dcall GdipGetPathGradientCenterPoint(ptr ptr)
@ stub GdipGetPathGradientCenterPointI
@ stub GdipGetPathGradientFocusScales
@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
...
...
@@ -550,7 +550,7 @@
@ stdcall GdipSetPathFillMode(ptr long)
@ stub GdipSetPathGradientBlend
@ stdcall GdipSetPathGradientCenterColor(ptr long)
@ st
ub GdipSetPathGradientCenterPoint
@ st
dcall GdipSetPathGradientCenterPoint(ptr ptr)
@ stub GdipSetPathGradientCenterPointI
@ stub GdipSetPathGradientFocusScales
@ stdcall GdipSetPathGradientGammaCorrection(ptr long)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
9a9c857b
...
...
@@ -98,6 +98,7 @@ struct GpPathGradient{
ARGB
centercolor
;
GpWrapMode
wrap
;
BOOL
gamma
;
GpPointF
center
;
};
struct
GpPath
{
...
...
include/gdiplusflat.h
View file @
9a9c857b
...
...
@@ -94,6 +94,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpPathGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
,
GpBrushType
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterPoint
(
GpPathGradient
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
...
...
@@ -101,6 +102,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
GpStatus
WINGDIPAPI
GdipDeleteBrush
(
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipGetSolidFillColor
(
GpSolidFill
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterColor
(
GpPathGradient
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterPoint
(
GpPathGradient
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
);
GpStatus
WINGDIPAPI
GdipSetPathGradientSigmaBlend
(
GpPathGradient
*
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipSetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
...
...
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