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
9ea7ef46
Commit
9ea7ef46
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 GdipS/GetPathGradientGammaCorrection.
parent
15dce3a4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
2 deletions
+29
-2
brush.c
dlls/gdiplus/brush.c
+24
-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 @
9ea7ef46
...
...
@@ -84,6 +84,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(
*
grad
)
->
brush
.
bt
=
BrushTypePathGradient
;
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
wrap
;
(
*
grad
)
->
gamma
=
FALSE
;
return
Ok
;
}
...
...
@@ -123,6 +124,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
(
*
grad
)
->
brush
.
bt
=
BrushTypePathGradient
;
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
WrapModeClamp
;
(
*
grad
)
->
gamma
=
FALSE
;
return
Ok
;
}
...
...
@@ -166,6 +168,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
*
gamma
)
{
if
(
!
grad
||
!
gamma
)
return
InvalidParameter
;
*
gamma
=
grad
->
gamma
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
grad
,
INT
*
count
)
{
...
...
@@ -216,6 +229,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientGammaCorrection
(
GpPathGradient
*
grad
,
BOOL
gamma
)
{
if
(
!
grad
)
return
InvalidParameter
;
grad
->
gamma
=
gamma
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPathGradientSigmaBlend
(
GpPathGradient
*
grad
,
REAL
focus
,
REAL
scale
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
9ea7ef46
...
...
@@ -331,7 +331,7 @@
@ stub GdipGetPathGradientCenterPoint
@ stub GdipGetPathGradientCenterPointI
@ stub GdipGetPathGradientFocusScales
@ st
ub GdipGetPathGradientGammaCorrection
@ st
dcall GdipGetPathGradientGammaCorrection(ptr ptr)
@ stub GdipGetPathGradientPath
@ stdcall GdipGetPathGradientPointCount(ptr ptr)
@ stub GdipGetPathGradientPresetBlend
...
...
@@ -553,7 +553,7 @@
@ stub GdipSetPathGradientCenterPoint
@ stub GdipSetPathGradientCenterPointI
@ stub GdipSetPathGradientFocusScales
@ st
ub GdipSetPathGradientGammaCorrection
@ st
dcall GdipSetPathGradientGammaCorrection(ptr long)
@ stub GdipSetPathGradientLinearBlend
@ stub GdipSetPathGradientPath
@ stub GdipSetPathGradientPresetBlend
...
...
dlls/gdiplus/gdiplus_private.h
View file @
9ea7ef46
...
...
@@ -97,6 +97,7 @@ struct GpPathGradient{
PathData
pathdata
;
ARGB
centercolor
;
GpWrapMode
wrap
;
BOOL
gamma
;
};
struct
GpPath
{
...
...
include/gdiplusflat.h
View file @
9ea7ef46
...
...
@@ -94,12 +94,14 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpPathGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
,
GpBrushType
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
ARGB
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipDeleteBrush
(
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipGetSolidFillColor
(
GpSolidFill
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterColor
(
GpPathGradient
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
);
GpStatus
WINGDIPAPI
GdipSetPathGradientSigmaBlend
(
GpPathGradient
*
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipSetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
ARGB
*
,
INT
*
);
...
...
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