mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
Bitmap size field in the BITMAPV4HEADER was not being set correctly (the image viewers I've been using are unaffected by this but it ought to be corrected)
This commit is contained in:
parent
3f6937e1a6
commit
fe7baa108f
|
@ -26,9 +26,9 @@ namespace Util
|
|||
reserved2(0),
|
||||
bitmap_offset(_bitmap_offset)
|
||||
{
|
||||
id[0] = 'B';
|
||||
id[1] = 'M';
|
||||
}
|
||||
id[0] = 'B';
|
||||
id[1] = 'M';
|
||||
}
|
||||
};
|
||||
|
||||
// BITMAPV4HEADER
|
||||
|
@ -69,7 +69,7 @@ namespace Util
|
|||
num_planes(1),
|
||||
bits_per_pixel(32),
|
||||
compression_method(3), // BI_BITFIELDS
|
||||
bitmap_size(_width*_height*3),
|
||||
bitmap_size(_width*_height*4),
|
||||
horizontal_resolution(2835), // 72 dpi
|
||||
vertical_resolution(2835),
|
||||
num_palette_colors(0),
|
||||
|
|
Loading…
Reference in a new issue