From 01c9605a8c521727076303a2a700e6a17e0c19f6 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 14 Nov 2018 16:53:11 -0300 Subject: [PATCH] Test Sprite.bounds --- scripts/sprite.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/sprite.lua b/scripts/sprite.lua index 2474fcd48..e245cedc4 100644 --- a/scripts/sprite.lua +++ b/scripts/sprite.lua @@ -8,6 +8,7 @@ do assert(a.width == 32) assert(a.height == 64) assert(a.colorMode == ColorMode.RGB) -- RGB by default + assert(a.bounds == Rectangle{x=0, y=0, width=32, height=64}) -- Crop and resize a.selection:select(2, 3, 4, 5)