Fix reversing some images with an input tileset (#2081)

This commit is contained in:
Rangi
2026-09-13 21:00:58 +02:00
committed by GitHub
parent e9fc7b3135
commit 82f58b95ac
6 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -552,7 +552,7 @@ void reverse() {
// Get the tile ID at this location
size_t tileOfs =
tilemap ? static_cast<uint8_t>((*tilemap)[index] - options.baseTileIDs[bank])
+ (bank ? nbTilesInBank[0] : 0)
+ (bank ? options.maxNbTiles[0] : 0)
: index;
// This should have been enforced by the earlier checking.
assume(tileOfs < nbTiles + options.trim);
Binary file not shown.
Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
-u
-N 3,2
-i reverse_input_tileset.in.2bpp
-t reverse_input_tileset.tilemap
-a reverse_input_tileset.attrmap
Binary file not shown.
Binary file not shown.