diff --git a/reactos/subsys/win32k/eng/bitblt.c b/reactos/subsys/win32k/eng/bitblt.c index 38dd7db73dd..7d5a11ce1e6 100644 --- a/reactos/subsys/win32k/eng/bitblt.c +++ b/reactos/subsys/win32k/eng/bitblt.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: bitblt.c,v 1.39 2004/01/16 19:32:00 gvg Exp $ +/* $Id: bitblt.c,v 1.40 2004/01/17 01:04:45 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -42,9 +42,11 @@ #include #include -//#define NDEBUG +#define NDEBUG #include +#define ROP_NOOP 0x00AA0029 + typedef BOOLEAN STDCALL (*PBLTRECTFUNC)(SURFOBJ* OutputObj, SURFGDI* OutputGDI, SURFOBJ* InputObj, @@ -231,7 +233,7 @@ EngBitBlt(SURFOBJ *DestObj, UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000); UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000); - if (! UsesSource && ! UsesPattern && 0xaacc != Rop4) + if (ROP_NOOP == Rop4) { /* Copy destination onto itself: nop */ return TRUE; @@ -1096,7 +1098,7 @@ EngMaskBitBlt(SURFOBJ *DestObj, /* Dummy BitBlt to let driver know that something has changed. 0x00AA0029 is the Rop for D (no-op) */ IntEngBitBlt(DestObj, NULL, Mask, ClipRegion, DestColorTranslation, - DestRect, SourcePoint, MaskOrigin, Brush, BrushOrigin, 0x00AA0029); + DestRect, SourcePoint, MaskOrigin, Brush, BrushOrigin, ROP_NOOP); return Ret; }