2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-23 10:20:08 +01:00

Fix SaveBMP

This commit is contained in:
lewa_j 2020-04-25 19:38:44 +03:00 committed by Alibek Omarov
parent 82c54b1b54
commit deb7591d1e

View File

@ -344,6 +344,7 @@ qboolean Image_SaveBMP( const char *name, rgbdata_t *pix )
hdr.id[0] = 'B';
hdr.id[1] = 'M';
hdr.fileSize = sizeof( hdr ) + cbBmpBits + cbPalBytes;
hdr.reserved0 = 0;
hdr.bitmapDataOffset = sizeof( hdr ) + cbPalBytes;
hdr.bitmapHeaderSize = BI_SIZE;
hdr.width = biTrueWidth;