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
5873bac9
Commit
5873bac9
authored
Apr 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipCreateLineBrushFromRect.
parent
836b4183
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
brush.c
dlls/gdiplus/brush.c
+19
-5
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
No files found.
dlls/gdiplus/brush.c
View file @
5873bac9
...
...
@@ -149,7 +149,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrushI(GDIPCONST GpPoint* startpoint,
return
GdipCreateLineBrush
(
&
stF
,
&
endF
,
startcolor
,
endcolor
,
wrap
,
line
);
}
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRect
I
(
GDIPCONST
GpRect
*
rect
,
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRect
(
GDIPCONST
GpRectF
*
rect
,
ARGB
startcolor
,
ARGB
endcolor
,
LinearGradientMode
mode
,
GpWrapMode
wrap
,
GpLineGradient
**
line
)
{
...
...
@@ -158,14 +158,28 @@ GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect* rect,
if
(
!
line
||
!
rect
)
return
InvalidParameter
;
start
.
X
=
(
REAL
)
rect
->
X
;
start
.
Y
=
(
REAL
)
rect
->
Y
;
end
.
X
=
(
REAL
)
(
rect
->
X
+
rect
->
Width
)
;
end
.
Y
=
(
REAL
)
(
rect
->
Y
+
rect
->
Height
)
;
start
.
X
=
rect
->
X
;
start
.
Y
=
rect
->
Y
;
end
.
X
=
rect
->
X
+
rect
->
Width
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
return
GdipCreateLineBrush
(
&
start
,
&
end
,
startcolor
,
endcolor
,
wrap
,
line
);
}
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRectI
(
GDIPCONST
GpRect
*
rect
,
ARGB
startcolor
,
ARGB
endcolor
,
LinearGradientMode
mode
,
GpWrapMode
wrap
,
GpLineGradient
**
line
)
{
GpRectF
rectF
;
rectF
.
X
=
(
REAL
)
rect
->
X
;
rectF
.
Y
=
(
REAL
)
rect
->
Y
;
rectF
.
Width
=
(
REAL
)
rect
->
Width
;
rectF
.
Height
=
(
REAL
)
rect
->
Height
;
return
GdipCreateLineBrushFromRect
(
&
rectF
,
startcolor
,
endcolor
,
mode
,
wrap
,
line
);
}
GpStatus
WINGDIPAPI
GdipCreatePathGradient
(
GDIPCONST
GpPointF
*
points
,
INT
count
,
GpWrapMode
wrap
,
GpPathGradient
**
grad
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
5873bac9
...
...
@@ -99,7 +99,7 @@
@ stub GdipCreateHatchBrush
@ stdcall GdipCreateImageAttributes(ptr)
@ stdcall GdipCreateLineBrush(ptr ptr long long long ptr)
@ st
ub GdipCreateLineBrushFromRect
@ st
dcall GdipCreateLineBrushFromRect(ptr long long long long ptr)
@ stdcall GdipCreateLineBrushFromRectI(ptr long long long long ptr)
@ stub GdipCreateLineBrushFromRectWithAngle
@ stub GdipCreateLineBrushFromRectWithAngleI
...
...
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