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
3d274bc1
Commit
3d274bc1
authored
Apr 24, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipGetLineRect/GdipGetLineRectI.
parent
2c059d7f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
brush.c
dlls/gdiplus/brush.c
+31
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/brush.c
View file @
3d274bc1
...
...
@@ -715,3 +715,34 @@ GpStatus WINGDIPAPI GdipSetLineTransform(GpLineGradient *brush,
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetLineRect
(
GpLineGradient
*
brush
,
GpRectF
*
rect
)
{
if
(
!
brush
||
!
rect
)
return
InvalidParameter
;
rect
->
X
=
(
brush
->
startpoint
.
X
<
brush
->
endpoint
.
X
?
brush
->
startpoint
.
X
:
brush
->
endpoint
.
X
);
rect
->
Y
=
(
brush
->
startpoint
.
Y
<
brush
->
endpoint
.
Y
?
brush
->
startpoint
.
Y
:
brush
->
endpoint
.
Y
);
rect
->
Width
=
fabs
(
brush
->
startpoint
.
X
-
brush
->
endpoint
.
X
);
rect
->
Height
=
fabs
(
brush
->
startpoint
.
Y
-
brush
->
endpoint
.
Y
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetLineRectI
(
GpLineGradient
*
brush
,
GpRect
*
rect
)
{
GpRectF
rectF
;
GpStatus
ret
;
ret
=
GdipGetLineRect
(
brush
,
&
rectF
);
if
(
ret
==
Ok
){
rect
->
X
=
roundr
(
rectF
.
X
);
rect
->
Y
=
roundr
(
rectF
.
Y
);
rect
->
Width
=
roundr
(
rectF
.
Width
);
rect
->
Height
=
roundr
(
rectF
.
Height
);
}
return
ret
;
}
dlls/gdiplus/gdiplus.spec
View file @
3d274bc1
...
...
@@ -306,8 +306,8 @@
@ stdcall GdipGetLineGammaCorrection(ptr ptr)
@ stub GdipGetLinePresetBlend
@ stub GdipGetLinePresetBlendCount
@ st
ub GdipGetLineRect
@ st
ub GdipGetLineRectI
@ st
dcall GdipGetLineRect(ptr ptr)
@ st
dcall GdipGetLineRectI(ptr ptr)
@ stub GdipGetLineSpacing
@ stub GdipGetLineTransform
@ stub GdipGetLineWrapMode
...
...
include/gdiplusflat.h
View file @
3d274bc1
...
...
@@ -157,6 +157,8 @@ GpStatus WINGDIPAPI GdipCreateTextureIAI(GpImage*,GDIPCONST GpImageAttributes*,
GpStatus
WINGDIPAPI
GdipDeleteBrush
(
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
,
GpBrushType
*
);
GpStatus
WINGDIPAPI
GdipGetLineGammaCorrection
(
GpLineGradient
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetLineRect
(
GpLineGradient
*
,
GpRectF
*
);
GpStatus
WINGDIPAPI
GdipGetLineRectI
(
GpLineGradient
*
,
GpRect
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterColor
(
GpPathGradient
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterPoint
(
GpPathGradient
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientFocusScales
(
GpPathGradient
*
,
REAL
*
,
REAL
*
);
...
...
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