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
9d6e0750
Commit
9d6e0750
authored
Aug 13, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipDrawRectangles.
parent
30fdcc76
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+42
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
9d6e0750
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
@ stub GdipDrawPolygonI
@ stub GdipDrawPolygonI
@ stub GdipDrawRectangle
@ stub GdipDrawRectangle
@ stdcall GdipDrawRectangleI(ptr ptr long long long long)
@ stdcall GdipDrawRectangleI(ptr ptr long long long long)
@ st
ub GdipDrawRectangles
@ st
dcall GdipDrawRectangles(ptr ptr ptr long)
@ stub GdipDrawRectanglesI
@ stub GdipDrawRectanglesI
@ stub GdipDrawString
@ stub GdipDrawString
@ stub GdipEmfToWmfBits
@ stub GdipEmfToWmfBits
...
...
dlls/gdiplus/graphics.c
View file @
9d6e0750
...
@@ -1228,6 +1228,48 @@ GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x,
...
@@ -1228,6 +1228,48 @@ GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipDrawRectangles
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GpRectF
*
rects
,
INT
count
)
{
GpPointF
*
ptf
;
POINT
*
pti
;
INT
save_state
,
i
;
if
(
!
graphics
||
!
pen
||
!
rects
||
count
<
1
)
return
InvalidParameter
;
ptf
=
GdipAlloc
(
4
*
count
*
sizeof
(
GpPointF
));
pti
=
GdipAlloc
(
4
*
count
*
sizeof
(
POINT
));
if
(
!
ptf
||
!
pti
){
GdipFree
(
ptf
);
GdipFree
(
pti
);
return
OutOfMemory
;
}
for
(
i
=
0
;
i
<
count
;
i
++
){
ptf
[
4
*
i
+
3
].
X
=
ptf
[
4
*
i
].
X
=
rects
[
i
].
X
;
ptf
[
4
*
i
+
1
].
Y
=
ptf
[
4
*
i
].
Y
=
rects
[
i
].
Y
;
ptf
[
4
*
i
+
2
].
X
=
ptf
[
4
*
i
+
1
].
X
=
rects
[
i
].
X
+
rects
[
i
].
Width
;
ptf
[
4
*
i
+
3
].
Y
=
ptf
[
4
*
i
+
2
].
Y
=
rects
[
i
].
Y
+
rects
[
i
].
Height
;
}
save_state
=
prepare_dc
(
graphics
,
pen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
4
*
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
Polygon
(
graphics
->
hdc
,
&
pti
[
4
*
i
],
4
);
restore_dc
(
graphics
,
save_state
);
GdipFree
(
ptf
);
GdipFree
(
pti
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
{
{
INT
save_state
;
INT
save_state
;
...
...
include/gdiplusflat.h
View file @
9d6e0750
...
@@ -75,6 +75,7 @@ GpStatus WINGDIPAPI GdipDrawLines(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
...
@@ -75,6 +75,7 @@ GpStatus WINGDIPAPI GdipDrawLines(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
GpStatus
WINGDIPAPI
GdipDrawPath
(
GpGraphics
*
,
GpPen
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipDrawPath
(
GpGraphics
*
,
GpPen
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawRectangles
(
GpGraphics
*
,
GpPen
*
,
GpRectF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
,
GpBrush
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
,
GpBrush
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillPolygonI
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPoint
*
,
INT
,
GpStatus
WINGDIPAPI
GdipFillPolygonI
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPoint
*
,
INT
,
...
...
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