diff --git a/src/lime/_internal/format/BMP.hx b/src/lime/_internal/format/BMP.hx index 32a458d74..2f5ec159f 100644 --- a/src/lime/_internal/format/BMP.hx +++ b/src/lime/_internal/format/BMP.hx @@ -49,7 +49,7 @@ class BMP { case RGB: - pixelValuesLength = (image.width * 3) + ((image.width * 3) % 4) + (image.height * 3) + (image.height * 3); + pixelValuesLength = ((image.width * 3) + ((image.width * 3) % 4)) * image.height; default: