mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-18 11:47:06 +00:00
Fix reversing some images with an input tileset (#2081)
This commit is contained in:
+1
-1
@@ -552,7 +552,7 @@ void reverse() {
|
|||||||
// Get the tile ID at this location
|
// Get the tile ID at this location
|
||||||
size_t tileOfs =
|
size_t tileOfs =
|
||||||
tilemap ? static_cast<uint8_t>((*tilemap)[index] - options.baseTileIDs[bank])
|
tilemap ? static_cast<uint8_t>((*tilemap)[index] - options.baseTileIDs[bank])
|
||||||
+ (bank ? nbTilesInBank[0] : 0)
|
+ (bank ? options.maxNbTiles[0] : 0)
|
||||||
: index;
|
: index;
|
||||||
// This should have been enforced by the earlier checking.
|
// This should have been enforced by the earlier checking.
|
||||||
assume(tileOfs < nbTiles + options.trim);
|
assume(tileOfs < nbTiles + options.trim);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -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.
Reference in New Issue
Block a user