Author: jgardou
Date: Wed Jun 16 18:50:55 2010
New Revision: 47789
URL:
http://svn.reactos.org/svn/reactos?rev=47789&view=rev
Log:
[WIN32K]
- revert part of -r47735, as it's not the good fix (tm)
Modified:
branches/reactos-yarotows/subsystems/win32/win32k/eng/surface.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/surface.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win…
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/eng/surface.c [iso-8859-1]
(original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/eng/surface.c [iso-8859-1] Wed Jun
16 18:50:55 2010
@@ -203,12 +203,12 @@
if (ulWidth)
{
/* Align the width (Windows compatibility) */
- ulWidth = ((((ulWidth << 3) / cBitsPixel) * cBitsPixel + 15) & ~15)
>> 3;
+ ulWidth = ((((ulWidth << 3) / cBitsPixel) * cBitsPixel + 31) & ~31)
>> 3;
}
else
{
/* Calculate width from the bitmap width in pixels */
- ulWidth = ((pso->sizlBitmap.cx * cBitsPixel + 15) & ~15) >> 3;
+ ulWidth = ((pso->sizlBitmap.cx * cBitsPixel + 31) & ~31) >> 3;
}
/* Calculate the bitmap size in bytes */