From 29af6174bd5410a90bda158a8fc2a45796eeb032 Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Wed, 24 Aug 2022 19:09:18 -0300 Subject: [PATCH] Fix fix_test_img() because BMP supports alpha channel --- scripts/save_file_command.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/save_file_command.lua b/scripts/save_file_command.lua index dd800ec0d..b2963681c 100644 --- a/scripts/save_file_command.lua +++ b/scripts/save_file_command.lua @@ -6,8 +6,7 @@ function fix_test_img(testImg, scale, fileExt, cm, c1) -- With file formats that don't support alpha channel, we -- compare totally transparent pixels (alpha=0) with black. - if fileExt == "bmp" or (fileExt == "tga" and - cm == ColorMode.GRAYSCALE) then + if fileExt == "tga" and cm == ColorMode.GRAYSCALE then local pixel if cm == ColorMode.RGB then pixel = c1.rgbaPixel