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
490ca1ca
Commit
490ca1ca
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 GdipGetPathGradientPointCount.
parent
cf8b59ef
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
brush.c
dlls/gdiplus/brush.c
+27
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/brush.c
View file @
490ca1ca
...
...
@@ -60,12 +60,27 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
*
grad
=
GdipAlloc
(
sizeof
(
GpPathGradient
));
if
(
!*
grad
)
return
OutOfMemory
;
(
*
grad
)
->
pathdata
.
Count
=
path
->
pathdata
.
Count
;
(
*
grad
)
->
pathdata
.
Points
=
GdipAlloc
(
path
->
pathdata
.
Count
*
sizeof
(
PointF
));
(
*
grad
)
->
pathdata
.
Types
=
GdipAlloc
(
path
->
pathdata
.
Count
);
if
(
!
(
*
grad
)
->
pathdata
.
Points
||
!
(
*
grad
)
->
pathdata
.
Types
){
GdipFree
((
*
grad
)
->
pathdata
.
Points
);
GdipFree
((
*
grad
)
->
pathdata
.
Types
);
GdipFree
(
*
grad
);
return
OutOfMemory
;
}
memcpy
((
*
grad
)
->
pathdata
.
Points
,
path
->
pathdata
.
Points
,
path
->
pathdata
.
Count
*
sizeof
(
PointF
));
memcpy
((
*
grad
)
->
pathdata
.
Types
,
path
->
pathdata
.
Types
,
path
->
pathdata
.
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
=
BrushType
SolidColor
;
(
*
grad
)
->
brush
.
bt
=
BrushType
PathGradient
;
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
wrap
=
WrapModeClamp
;
...
...
@@ -111,6 +126,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
grad
,
INT
*
count
)
{
if
(
!
grad
||
!
count
)
return
InvalidParameter
;
*
count
=
grad
->
pathdata
.
Count
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetSolidFillColor
(
GpSolidFill
*
sf
,
ARGB
*
argb
)
{
if
(
!
sf
||
!
argb
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
490ca1ca
...
...
@@ -333,7 +333,7 @@
@ stub GdipGetPathGradientFocusScales
@ stub GdipGetPathGradientGammaCorrection
@ stub GdipGetPathGradientPath
@ st
ub GdipGetPathGradientPointCount
@ st
dcall GdipGetPathGradientPointCount(ptr ptr)
@ stub GdipGetPathGradientPresetBlend
@ stub GdipGetPathGradientPresetBlendCount
@ stub GdipGetPathGradientRect
...
...
dlls/gdiplus/gdiplus_private.h
View file @
490ca1ca
...
...
@@ -94,6 +94,7 @@ struct GpSolidFill{
struct
GpPathGradient
{
GpBrush
brush
;
PathData
pathdata
;
ARGB
centercolor
;
GpWrapMode
wrap
;
};
...
...
include/gdiplusflat.h
View file @
490ca1ca
...
...
@@ -92,6 +92,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpPathGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
,
GpBrushType
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipDeleteBrush
(
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipGetSolidFillColor
(
GpSolidFill
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterColor
(
GpPathGradient
*
,
ARGB
);
...
...
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