mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00:00
[WIN32K]
- revert part of -r47735, as it's not the good fix (tm) svn path=/branches/reactos-yarotows/; revision=47789
This commit is contained in:
parent
5f2d67cb35
commit
bb23cc5ca6
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue