gdi32: Calculate the stride from the image size.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fe26147c17
commit
a4f0415a5b
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue