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
496c319c
Commit
496c319c
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/SetPathGradientFocusScales.
parent
9a9c857b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
brush.c
dlls/gdiplus/brush.c
+28
-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 @
496c319c
...
...
@@ -116,6 +116,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(
*
grad
)
->
gamma
=
FALSE
;
(
*
grad
)
->
center
.
X
=
0
.
0
;
(
*
grad
)
->
center
.
Y
=
0
.
0
;
(
*
grad
)
->
focus
.
X
=
0
.
0
;
(
*
grad
)
->
focus
.
Y
=
0
.
0
;
return
Ok
;
}
...
...
@@ -159,6 +161,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
/* FIXME: this should be set to the "centroid" of the path by default */
(
*
grad
)
->
center
.
X
=
0
.
0
;
(
*
grad
)
->
center
.
Y
=
0
.
0
;
(
*
grad
)
->
focus
.
X
=
0
.
0
;
(
*
grad
)
->
focus
.
Y
=
0
.
0
;
return
Ok
;
}
...
...
@@ -225,6 +229,18 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientFocusScales
(
GpPathGradient
*
grad
,
REAL
*
x
,
REAL
*
y
)
{
if
(
!
grad
||
!
x
||
!
y
)
return
InvalidParameter
;
*
x
=
grad
->
focus
.
X
;
*
y
=
grad
->
focus
.
Y
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
*
gamma
)
{
...
...
@@ -298,6 +314,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientFocusScales
(
GpPathGradient
*
grad
,
REAL
x
,
REAL
y
)
{
if
(
!
grad
)
return
InvalidParameter
;
grad
->
focus
.
X
=
x
;
grad
->
focus
.
Y
=
y
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
gamma
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
496c319c
...
...
@@ -330,7 +330,7 @@
@ stub GdipGetPathGradientCenterColor
@ stdcall GdipGetPathGradientCenterPoint(ptr ptr)
@ stub GdipGetPathGradientCenterPointI
@ st
ub GdipGetPathGradientFocusScales
@ st
dcall GdipGetPathGradientFocusScales(ptr ptr ptr)
@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
@ stub GdipGetPathGradientPath
@ stdcall GdipGetPathGradientPointCount(ptr ptr)
...
...
@@ -552,7 +552,7 @@
@ stdcall GdipSetPathGradientCenterColor(ptr long)
@ stdcall GdipSetPathGradientCenterPoint(ptr ptr)
@ stub GdipSetPathGradientCenterPointI
@ st
ub GdipSetPathGradientFocusScales
@ st
dcall GdipSetPathGradientFocusScales(ptr long long)
@ stdcall GdipSetPathGradientGammaCorrection(ptr long)
@ stub GdipSetPathGradientLinearBlend
@ stub GdipSetPathGradientPath
...
...
dlls/gdiplus/gdiplus_private.h
View file @
496c319c
...
...
@@ -99,6 +99,7 @@ struct GpPathGradient{
GpWrapMode
wrap
;
BOOL
gamma
;
GpPointF
center
;
GpPointF
focus
;
};
struct
GpPath
{
...
...
include/gdiplusflat.h
View file @
496c319c
...
...
@@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
,
GpBrushType
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterPoint
(
GpPathGradient
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientFocusScales
(
GpPathGradient
*
,
REAL
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
...
...
@@ -103,6 +104,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
GpStatus
WINGDIPAPI
GdipGetSolidFillColor
(
GpSolidFill
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterColor
(
GpPathGradient
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterPoint
(
GpPathGradient
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientFocusScales
(
GpPathGradient
*
,
REAL
,
REAL
);
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