From 0e4636a767f9f4b1362d616e3e2c099a7fbc32a3 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Anteros" Date: Sun, 24 Nov 2024 19:03:50 +0800 Subject: [PATCH] (agrf) Fix merge_bbox demo remap --- agrf/lib/building/demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agrf/lib/building/demo.py b/agrf/lib/building/demo.py index 56233cfe..8f3fa4c1 100644 --- a/agrf/lib/building/demo.py +++ b/agrf/lib/building/demo.py @@ -14,6 +14,7 @@ class Demo: merge_bbox: bool = False def graphics(self, scale, bpp, remap=None): + remap = remap or self.remap if self.merge_bbox: sprites = [] for r, row in enumerate(self.tiles): @@ -21,7 +22,6 @@ def graphics(self, scale, bpp, remap=None): if sprite is not None: sprites.extend(sprite.demo_translate(c, r).parent_sprites) return ALayout(None, sprites, False).graphics(scale, bpp, remap) - remap = remap or self.remap yofs = 32 * scale img = LayeredImage.canvas( -16 * scale * (len(self.tiles) + len(self.tiles[0])),