OpenToonz - An open-source full-featured 2D animation creation software
C
Fix 8-bit BMP header image size
Rodney163e3dd192be
diff --git a/toonz/sources/common/tiio/tiio_bmp.cpp b/toonz/sources/common/tiio/tiio_bmp.cppindex 251c1ba76..76a0f92ca 100644--- a/toonz/sources/common/tiio/tiio_bmp.cpp+++ b/toonz/sources/common/tiio/tiio_bmp.cpp@@ -652,8 +652,7 @@ void BmpWriter::open(FILE *file, const TImageInfo &info) {assert(m_bitPerPixel == 8 || m_bitPerPixel == 24);- int bytePerLine =- ((lx * m_bitPerPixel + 31) / 32) * (m_bitPerPixel == 8 ? 1 : 4);+ int bytePerLine = ((lx * m_bitPerPixel + 31) / 32) * 4;int fileSize = 14 // file header+ 40 // info header