Fixed reading bitmap from buffer.
This commit is contained in:
parent
7990ea6371
commit
ad41fc59a3
@ -261,7 +261,7 @@ int winpr_image_bitmap_read_buffer(wImage* image, BYTE* buffer, int size)
|
||||
|
||||
image->bitsPerPixel = bi.biBitCount;
|
||||
image->bytesPerPixel = (image->bitsPerPixel / 8);
|
||||
image->scanline = (bi.biSizeImage / bi.biHeight);
|
||||
image->scanline = (bi.biSizeImage / image->height);
|
||||
|
||||
image->data = (BYTE*) malloc(bi.biSizeImage);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user