Try to fix RLE regression

svn path=/trunk/; revision=56465
This commit is contained in:
Timo Kreuzer 2012-05-01 14:57:23 +00:00
parent 1ba4501780
commit 725ac201be

View file

@ -31,9 +31,9 @@ VOID DecompressBitmap(SIZEL Size, BYTE *CompressedBits, BYTE *UncompressedBits,
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);