Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b228426d
Commit
b228426d
authored
Mar 31, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Default path gradient center color depends on the constructor.
parent
28bf9356
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
brush.c
dlls/gdiplus/brush.c
+5
-5
No files found.
dlls/gdiplus/brush.c
View file @
b228426d
...
...
@@ -509,7 +509,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrushFromRectWithAngleI(GDIPCONST GpRect* rect
wrap
,
line
);
}
static
GpStatus
create_path_gradient
(
GpPath
*
path
,
GpPathGradient
**
grad
)
static
GpStatus
create_path_gradient
(
GpPath
*
path
,
ARGB
centercolor
,
GpPathGradient
**
grad
)
{
GpRectF
bounds
;
GpStatus
stat
;
...
...
@@ -554,7 +554,7 @@ static GpStatus create_path_gradient(GpPath *path, GpPathGradient **grad)
(
*
grad
)
->
path
=
path
;
(
*
grad
)
->
brush
.
bt
=
BrushTypePathGradient
;
(
*
grad
)
->
centercolor
=
0xffffffff
;
(
*
grad
)
->
centercolor
=
centercolor
;
(
*
grad
)
->
wrap
=
WrapModeClamp
;
(
*
grad
)
->
gamma
=
FALSE
;
/* FIXME: this should be set to the "centroid" of the path by default */
...
...
@@ -591,7 +591,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
stat
=
GdipAddPathLine2
(
path
,
points
,
count
);
if
(
stat
==
Ok
)
stat
=
create_path_gradient
(
path
,
grad
);
stat
=
create_path_gradient
(
path
,
0xff000000
,
grad
);
if
(
stat
!=
Ok
)
GdipDeletePath
(
path
);
...
...
@@ -621,7 +621,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientI(GDIPCONST GpPoint* points,
stat
=
GdipAddPathLine2I
(
path
,
points
,
count
);
if
(
stat
==
Ok
)
stat
=
create_path_gradient
(
path
,
grad
);
stat
=
create_path_gradient
(
path
,
0xff000000
,
grad
);
if
(
stat
!=
Ok
)
GdipDeletePath
(
path
);
...
...
@@ -648,7 +648,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
if
(
stat
==
Ok
)
{
stat
=
create_path_gradient
(
new_path
,
grad
);
stat
=
create_path_gradient
(
new_path
,
0xffffffff
,
grad
);
if
(
stat
!=
Ok
)
GdipDeletePath
(
new_path
);
...
...
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