mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 05:37:19 +00:00
Fix some tests failing when calling BackgroundFromLayer and the user has some special app.bgColor values in the preferences
This commit is contained in:
parent
64045a6710
commit
2a96d2d1c0
@ -1,4 +1,4 @@
|
|||||||
-- Copyright (C) 2019-2021 Igara Studio S.A.
|
-- Copyright (C) 2019-2022 Igara Studio S.A.
|
||||||
--
|
--
|
||||||
-- This file is released under the terms of the MIT license.
|
-- This file is released under the terms of the MIT license.
|
||||||
-- Read LICENSE.txt for more information.
|
-- Read LICENSE.txt for more information.
|
||||||
@ -27,6 +27,7 @@ do
|
|||||||
image:drawPixel(1, 0, pal:getColor(4))
|
image:drawPixel(1, 0, pal:getColor(4))
|
||||||
image:drawPixel(1, 1, pal:getColor(5))
|
image:drawPixel(1, 1, pal:getColor(5))
|
||||||
|
|
||||||
|
app.bgColor = Color{ index=0 }
|
||||||
app.command.BackgroundFromLayer()
|
app.command.BackgroundFromLayer()
|
||||||
|
|
||||||
local layer = sprite.layers[1]
|
local layer = sprite.layers[1]
|
||||||
|
@ -70,6 +70,7 @@ function test_inks(colorMode)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Convert to background layer
|
-- Convert to background layer
|
||||||
|
app.bgColor = Color{ index=0 }
|
||||||
app.command.BackgroundFromLayer()
|
app.command.BackgroundFromLayer()
|
||||||
|
|
||||||
app.useTool{ tool=pencil, color=d, points={ Point(0, 1), Point(2, 1) },
|
app.useTool{ tool=pencil, color=d, points={ Point(0, 1), Point(2, 1) },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user