gdi32: Update biSizeImage when uncompressing the RLE bitmap.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a3e09aa43f
commit
8c2374ab08
|
@ -316,7 +316,7 @@ static void *get_pixel_ptr( const BITMAPINFO *info, void *bits, int x, int y )
|
||||||
return (char *)bits + y * get_dib_stride( width, bpp ) + x * bpp / 8;
|
return (char *)bits + y * get_dib_stride( width, bpp ) + x * bpp / 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL build_rle_bitmap( const BITMAPINFO *info, struct gdi_image_bits *bits, HRGN *clip )
|
static BOOL build_rle_bitmap( BITMAPINFO *info, struct gdi_image_bits *bits, HRGN *clip )
|
||||||
{
|
{
|
||||||
DWORD i = 0;
|
DWORD i = 0;
|
||||||
int left, right;
|
int left, right;
|
||||||
|
@ -449,6 +449,7 @@ done:
|
||||||
bits->ptr = out_bits;
|
bits->ptr = out_bits;
|
||||||
bits->is_copy = TRUE;
|
bits->is_copy = TRUE;
|
||||||
bits->free = free_heap_bits;
|
bits->free = free_heap_bits;
|
||||||
|
info->bmiHeader.biSizeImage = get_dib_image_size( info );
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue