mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 00:40:08 +00:00
Fix bmp file and bitmap size are incorrectly set during save command (fix #3534)
Before this fix, file and image sizes were calculated incorrectly. This caused problems for some viewers/browsers/engines to load BMPs created in Aseprite.
This commit is contained in:
parent
877ae9eeec
commit
59fff4ba9c
@ -1213,7 +1213,7 @@ bool BmpFormat::onSave(FileOp *fop)
|
||||
+ biSizeImage); // image data
|
||||
}
|
||||
else {
|
||||
biSizeImage = (w*3 + filler) * h;
|
||||
biSizeImage = (w*bpp/8 + filler) * h;
|
||||
if (withAlpha)
|
||||
bfSize = BV3INFOHEADERSIZE +
|
||||
OS2FILEHEADERSIZE + biSizeImage; // header + image data
|
||||
|
Loading…
x
Reference in New Issue
Block a user