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
717ac52d
Commit
717ac52d
authored
May 06, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
May 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use the mode passed to GdipCreateLineBrushFromRect.
parent
aaee4d7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
brush.c
dlls/gdiplus/brush.c
+29
-4
No files found.
dlls/gdiplus/brush.c
View file @
717ac52d
...
...
@@ -309,10 +309,35 @@ GpStatus WINGDIPAPI GdipCreateLineBrushFromRect(GDIPCONST GpRectF* rect,
if
(
!
line
||
!
rect
)
return
InvalidParameter
;
start
.
X
=
rect
->
X
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
+
rect
->
Width
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
switch
(
mode
)
{
case
LinearGradientModeHorizontal
:
start
.
X
=
rect
->
X
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
+
rect
->
Width
;
end
.
Y
=
rect
->
Y
;
break
;
case
LinearGradientModeVertical
:
start
.
X
=
rect
->
X
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
break
;
case
LinearGradientModeForwardDiagonal
:
start
.
X
=
rect
->
X
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
+
rect
->
Width
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
break
;
case
LinearGradientModeBackwardDiagonal
:
start
.
X
=
rect
->
X
+
rect
->
Width
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
break
;
default:
return
InvalidParameter
;
}
stat
=
GdipCreateLineBrush
(
&
start
,
&
end
,
startcolor
,
endcolor
,
wrap
,
line
);
...
...
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