mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 04:13:50 +00:00
Fix fix_test_img() because BMP supports alpha channel
This commit is contained in:
parent
02a2f1f933
commit
29af6174bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user