Commit a4f0415a authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Calculate the stride from the image size.

parent fe26147c
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment