Author: tkreuzer
Date: Tue May 1 14:57:23 2012
New Revision: 56465
URL:
http://svn.reactos.org/svn/reactos?rev=56465&view=rev
Log:
[WIN32K]
Try to fix RLE regression
Modified:
trunk/reactos/win32ss/gdi/eng/rlecomp.c
Modified: trunk/reactos/win32ss/gdi/eng/rlecomp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/rlecomp.c?…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/rlecomp.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/rlecomp.c [iso-8859-1] Tue May 1 14:57:23 2012
@@ -31,9 +31,9 @@
BYTE *temp;
INT shift = 0;
- if (Format == BMF_4RLE)
+ if ((Format == BMF_4RLE) || (Format == BMF_4BPP))
shift = 1;
- else if(Format != BMF_8RLE)
+ else if ((Format != BMF_8RLE) || (Format == BMF_8BPP))
return;
width = ((Size.cx + shift) >> shift);