W32kRectangle() fixed.

svn path=/trunk/; revision=5596
This commit is contained in:
Royce Mitchell III 2003-08-16 05:00:14 +00:00
parent 321a71f1dd
commit 606b457dcd
2 changed files with 9 additions and 10 deletions

View file

@ -88,11 +88,10 @@ void PolygonTest ( HDC hdc )
SetPolyFillMode(hdc, WINDING);
Polygon(hdc,PointsWinding,sizeof(PointsWinding)/sizeof(PointsWinding[0]));
Rectangle ( hdc, 1, 1, 10, 10 );
Polygon(hdc,Tri1,sizeof(Tri1)/sizeof(Tri1[0]));
Polygon(hdc,Tri2,sizeof(Tri2)/sizeof(Tri2[0]));
Rectangle ( hdc, 3, 15, 7, 20 );
//cleanup
SetPolyFillMode(hdc, Mode);
DeleteObject ( SelectObject(hdc, OldPen) );

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: fillshap.c,v 1.23 2003/08/16 04:47:41 royce Exp $ */
/* $Id: fillshap.c,v 1.24 2003/08/16 05:00:14 royce Exp $ */
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -268,9 +268,9 @@ W32kRectangle(HDC hDC,
GDIOBJ_UnlockObj( dc->w.hPen, GO_PEN_MAGIC );
LeftRect += dc->w.DCOrgX;
RightRect += dc->w.DCOrgX;
RightRect += dc->w.DCOrgX - 1;
TopRect += dc->w.DCOrgY;
BottomRect += dc->w.DCOrgY;
BottomRect += dc->w.DCOrgY - 1;
ret = IntEngLineTo(SurfObj,
dc->CombinedClip,
@ -289,14 +289,14 @@ W32kRectangle(HDC hDC,
ret = IntEngLineTo(SurfObj,
dc->CombinedClip,
BrushObj,
LeftRect, BottomRect, RightRect, BottomRect,
RightRect, BottomRect, LeftRect, BottomRect,
RectBounds, // Bounding rectangle
dc->w.ROPmode); // MIX
ret = IntEngLineTo(SurfObj,
dc->CombinedClip,
BrushObj,
LeftRect, TopRect, LeftRect, BottomRect,
LeftRect, BottomRect, LeftRect, TopRect,
RectBounds, // Bounding rectangle
dc->w.ROPmode); // MIX */
@ -308,10 +308,10 @@ W32kRectangle(HDC hDC,
if (BrushObj->logbrush.lbStyle != BS_NULL)
{
DestRect.left = LeftRect + 1;
DestRect.right = RightRect - 1;
DestRect.right = RightRect;
DestRect.top = TopRect + 1;
DestRect.bottom = BottomRect - 1;
ret = EngBitBlt(SurfObj,
DestRect.bottom = BottomRect;
ret = IntEngBitBlt(SurfObj,
NULL,
NULL,
NULL,