Fix SaveBMP
This commit is contained in:
parent
82c54b1b54
commit
deb7591d1e
1 changed files with 1 additions and 0 deletions
|
@ -344,6 +344,7 @@ qboolean Image_SaveBMP( const char *name, rgbdata_t *pix )
|
||||||
hdr.id[0] = 'B';
|
hdr.id[0] = 'B';
|
||||||
hdr.id[1] = 'M';
|
hdr.id[1] = 'M';
|
||||||
hdr.fileSize = sizeof( hdr ) + cbBmpBits + cbPalBytes;
|
hdr.fileSize = sizeof( hdr ) + cbBmpBits + cbPalBytes;
|
||||||
|
hdr.reserved0 = 0;
|
||||||
hdr.bitmapDataOffset = sizeof( hdr ) + cbPalBytes;
|
hdr.bitmapDataOffset = sizeof( hdr ) + cbPalBytes;
|
||||||
hdr.bitmapHeaderSize = BI_SIZE;
|
hdr.bitmapHeaderSize = BI_SIZE;
|
||||||
hdr.width = biTrueWidth;
|
hdr.width = biTrueWidth;
|
||||||
|
|
Loading…
Add table
Reference in a new issue