From 6be3688ad1996df3aaebe7a9eb3305988a282cf4 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 1 Jan 2015 15:14:45 +0000 Subject: [PATCH] [WIN32K] "unfix" ROP_TO_ROP4, it was correct before, but the used ROP in NtGdiInvertRgn was not correct. Fixes display of shortcuts. svn path=/trunk/; revision=65931 --- reactos/win32ss/gdi/ntgdi/bitblt.c | 2 +- reactos/win32ss/gdi/ntgdi/intgdi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/gdi/ntgdi/bitblt.c b/reactos/win32ss/gdi/ntgdi/bitblt.c index df8c753c48b..32063b3e023 100644 --- a/reactos/win32ss/gdi/ntgdi/bitblt.c +++ b/reactos/win32ss/gdi/ntgdi/bitblt.c @@ -1319,7 +1319,7 @@ NtGdiInvertRgn( prgn, NULL, // pbo NULL, // pptlBrush, - ROP_TO_ROP4(DSTINVERT)); + ROP4_DSTINVERT); /* Unlock the region and DC and return the result */ REGION_UnlockRgn(prgn); diff --git a/reactos/win32ss/gdi/ntgdi/intgdi.h b/reactos/win32ss/gdi/ntgdi/intgdi.h index 81ae460177c..9ca7e7c564a 100644 --- a/reactos/win32ss/gdi/ntgdi/intgdi.h +++ b/reactos/win32ss/gdi/ntgdi/intgdi.h @@ -3,7 +3,7 @@ #define ROP_USES_SOURCE(Rop) (((((Rop) & 0xCC0000) >> 2) != ((Rop) & 0x330000)) || ((((Rop) & 0xCC000000) >> 2) != ((Rop) & 0x33000000))) #define ROP_USES_MASK(Rop) (((Rop) & 0xFF000000) != (((Rop) & 0xff0000) << 8)) #define FIXUP_ROP(Rop) if(((Rop) & 0xFF000000) == 0) Rop = MAKEROP4((Rop), (Rop)) -#define ROP_TO_ROP4(Rop) (((Rop) >> 8) & 0xFF00) | ((Rop) >> 16) +#define ROP_TO_ROP4(Rop) ((Rop) >> 16) /* Brush functions */