From a319015f49647e50abc057debe8b14c2fc6d3530 Mon Sep 17 00:00:00 2001 From: David Welch Date: Sat, 2 Aug 2003 19:52:03 +0000 Subject: [PATCH] - Fixed negative width/height off by one. svn path=/trunk/; revision=5388 --- reactos/subsys/win32k/objects/brush.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/win32k/objects/brush.c b/reactos/subsys/win32k/objects/brush.c index eeea50c0b6d..aa2496f0bb1 100644 --- a/reactos/subsys/win32k/objects/brush.c +++ b/reactos/subsys/win32k/objects/brush.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: brush.c,v 1.22 2003/07/27 18:37:23 dwelch Exp $ +/* $Id: brush.c,v 1.23 2003/08/02 19:52:03 dwelch Exp $ */ @@ -229,8 +229,8 @@ BOOL STDCALL W32kPatBlt(HDC hDC, } else { - DestRect.left = XLeft + Width + dc->w.DCOrgX; - DestRect.right = XLeft + dc->w.DCOrgX; + DestRect.left = XLeft + Width + 1 + dc->w.DCOrgX; + DestRect.right = XLeft + dc->w.DCOrgX + 1; } if (Height > 0) { @@ -239,8 +239,8 @@ BOOL STDCALL W32kPatBlt(HDC hDC, } else { - DestRect.top = YLeft + Height + dc->w.DCOrgY; - DestRect.bottom = YLeft + dc->w.DCOrgY; + DestRect.top = YLeft + Height + dc->w.DCOrgY + 1; + DestRect.bottom = YLeft + dc->w.DCOrgY + 1; } ret = IntEngBitBlt(SurfObj, NULL,