From 4adb7d638d15612e2542ae3a0ef581a786d21183 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 7 Sep 2018 13:18:17 -0700 Subject: [PATCH] Fix BMP format encode --- src/lime/_internal/format/BMP.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: