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
14e0df1f
Commit
14e0df1f
authored
Jul 09, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Updated GdipDrawRectangleI.
parent
a4fff714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+7
-19
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
14e0df1f
...
...
@@ -22,7 +22,7 @@
#include "windef.h"
#include "gdiplus.h"
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_ENDCAP_FLAT)
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_ENDCAP_FLAT
| PS_JOIN_MITER
)
COLORREF
ARGB2COLORREF
(
ARGB
color
);
...
...
dlls/gdiplus/graphics.c
View file @
14e0df1f
...
...
@@ -590,31 +590,19 @@ GpStatus WINGDIPAPI GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x,
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
INT
y
,
INT
width
,
INT
height
)
{
LOGBRUSH
lb
;
HPEN
hpen
;
HGDIOBJ
old_obj
;
INT
save_state
;
if
(
!
pen
||
!
graphics
)
return
InvalidParameter
;
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
pen
->
color
;
lb
.
lbHatch
=
0
;
hpen
=
ExtCreatePen
(
PS_GEOMETRIC
|
PS_ENDCAP_SQUARE
,
(
INT
)
pen
->
width
,
&
lb
,
0
,
NULL
);
old_obj
=
SelectObject
(
graphics
->
hdc
,
hpen
);
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
/* assume pen aligment centered */
MoveToEx
(
graphics
->
hdc
,
x
,
y
,
NULL
);
LineTo
(
graphics
->
hdc
,
x
+
width
,
y
);
LineTo
(
graphics
->
hdc
,
x
+
width
,
y
+
height
);
LineTo
(
graphics
->
hdc
,
x
,
y
+
height
);
LineTo
(
graphics
->
hdc
,
x
,
y
);
Rectangle
(
graphics
->
hdc
,
x
,
y
,
x
+
width
,
y
+
height
);
SelectObject
(
graphics
->
hdc
,
old_obj
);
DeleteObject
(
hpen
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
return
Ok
;
}
...
...
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