From bb23cc5ca6248fadde60d2558349ced48780dd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Wed, 16 Jun 2010 18:50:55 +0000 Subject: [PATCH] [WIN32K] - revert part of -r47735, as it's not the good fix (tm) svn path=/branches/reactos-yarotows/; revision=47789 --- subsystems/win32/win32k/eng/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsystems/win32/win32k/eng/surface.c b/subsystems/win32/win32k/eng/surface.c index a57470b7936..ab9f0d2c6d8 100644 --- a/subsystems/win32/win32k/eng/surface.c +++ b/subsystems/win32/win32k/eng/surface.c @@ -203,12 +203,12 @@ SURFACE_bSetBitmapBits( 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 */