From ca9c59183f0d894a178e3df71cbce96cb79cdbf4 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 12 Feb 2004 21:50:19 +0000 Subject: [PATCH] - Fixed clipping code in NtGdiGetPixel. Patch by James Pritchard. svn path=/trunk/; revision=8161 --- reactos/subsys/win32k/objects/bitmaps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/objects/bitmaps.c b/reactos/subsys/win32k/objects/bitmaps.c index d4089e96dbd..e90ef97f5e9 100644 --- a/reactos/subsys/win32k/objects/bitmaps.c +++ b/reactos/subsys/win32k/objects/bitmaps.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: bitmaps.c,v 1.53 2004/02/01 15:45:41 gvg Exp $ */ +/* $Id: bitmaps.c,v 1.54 2004/02/12 21:50:19 navaraf Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -434,7 +434,7 @@ COLORREF STDCALL NtGdiGetPixel(HDC hDC, INT XPos, INT YPos) if (XPos < dc->CombinedClip->rclBounds.left || XPos > dc->CombinedClip->rclBounds.right || YPos < dc->CombinedClip->rclBounds.top || - YPos > dc->CombinedClip->rclBounds.top) + YPos > dc->CombinedClip->rclBounds.bottom) { DC_UnlockDc(hDC); return (COLORREF)CLR_INVALID;