gdi32: Calculate the stride from the image size.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Huw Davies 2017-02-13 14:08:03 +00:00 committed by Alexandre Julliard
parent fe26147c17
commit a4f0415a5b
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ LONG WINAPI GetBitmapBits(
if (!get_image_from_bitmap( bmp, info, &src_bits, &src ))
{
const char *src_ptr = src_bits.ptr;
int src_stride = get_dib_stride( info->bmiHeader.biWidth, info->bmiHeader.biBitCount );
int src_stride = info->bmiHeader.biSizeImage / abs( info->bmiHeader.biHeight );
/* GetBitmapBits returns 16-bit aligned data */