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
3903ac6e
Commit
3903ac6e
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 GdipDrawRectanglesI.
parent
71931613
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+27
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
3903ac6e
...
...
@@ -197,7 +197,7 @@
@ stdcall GdipDrawRectangle(ptr ptr long long long long)
@ stdcall GdipDrawRectangleI(ptr ptr long long long long)
@ stdcall GdipDrawRectangles(ptr ptr ptr long)
@ st
ub GdipDrawRectanglesI
@ st
dcall GdipDrawRectanglesI(ptr ptr ptr long)
@ stdcall GdipDrawString(ptr ptr long ptr ptr ptr ptr)
@ stub GdipEmfToWmfBits
@ stub GdipEndContainer
...
...
dlls/gdiplus/graphics.c
View file @
3903ac6e
...
...
@@ -1392,6 +1392,33 @@ GpStatus WINGDIPAPI GdipDrawRectangles(GpGraphics *graphics, GpPen *pen,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawRectanglesI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpRect
*
rects
,
INT
count
)
{
GpRectF
*
rectsF
;
GpStatus
ret
;
INT
i
;
if
(
!
rects
||
count
<=
0
)
return
InvalidParameter
;
rectsF
=
GdipAlloc
(
sizeof
(
GpRectF
)
*
count
);
if
(
!
rectsF
)
return
OutOfMemory
;
for
(
i
=
0
;
i
<
count
;
i
++
){
rectsF
[
i
].
X
=
(
REAL
)
rects
[
i
].
X
;
rectsF
[
i
].
Y
=
(
REAL
)
rects
[
i
].
Y
;
rectsF
[
i
].
Width
=
(
REAL
)
rects
[
i
].
Width
;
rectsF
[
i
].
Height
=
(
REAL
)
rects
[
i
].
Height
;
}
ret
=
GdipDrawRectangles
(
graphics
,
pen
,
rectsF
,
count
);
GdipFree
(
rectsF
);
return
ret
;
}
GpStatus
WINGDIPAPI
GdipDrawString
(
GpGraphics
*
graphics
,
GDIPCONST
WCHAR
*
string
,
INT
length
,
GDIPCONST
GpFont
*
font
,
GDIPCONST
RectF
*
rect
,
GDIPCONST
GpStringFormat
*
format
,
GDIPCONST
GpBrush
*
brush
)
...
...
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