From 2730a5ab14b8a53fb3feddf07fb8f65bcb0db6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 6 Jun 2003 10:27:43 +0000 Subject: [PATCH] Improve polygon filling, patch by Tim Jobling svn path=/trunk/; revision=4851 --- reactos/subsys/win32k/objects/fillshap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/win32k/objects/fillshap.c b/reactos/subsys/win32k/objects/fillshap.c index 31ea71200ef..8e84b6053f7 100644 --- a/reactos/subsys/win32k/objects/fillshap.c +++ b/reactos/subsys/win32k/objects/fillshap.c @@ -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.18 2003/05/18 17:16:18 ea Exp $ */ +/* $Id: fillshap.c,v 1.19 2003/06/06 10:27:43 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN #include @@ -155,10 +155,10 @@ W32kPolygon(HDC hDC, // Draw the Polygon Edges with the current pen for (CurrentPoint = 0; CurrentPoint < Count; ++CurrentPoint) { - DestRect.bottom = MAX(DestRect.bottom, Points[CurrentPoint].y + dc->w.DCOrgY); - DestRect.top = MIN(DestRect.top, Points[CurrentPoint].y + dc->w.DCOrgY); - DestRect.right = MAX(DestRect.right, Points[CurrentPoint].y + dc->w.DCOrgX); - DestRect.left = MIN(DestRect.left, Points[CurrentPoint].y + dc->w.DCOrgX); + DestRect.bottom = MAX(DestRect.bottom, Points[CurrentPoint].y); + DestRect.top = MIN(DestRect.top, Points[CurrentPoint].y); + DestRect.right = MAX(DestRect.right, Points[CurrentPoint].y); + DestRect.left = MIN(DestRect.left, Points[CurrentPoint].y); }//for //Now fill the polygon with the current brush.