mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 18:55:41 +00:00
Advise on how to use -x to make -r work (#1459)
This commit is contained in:
1 parent
0cd79c33ef
commit
a3f9952b9e
1 file changed
+9
@@ -172,6 +172,15 @@ void reverse() {
|
||||
options.verbosePrint(Options::VERB_INTERM, "Picked reversing width of %zu tiles\n", width);
|
||||
}
|
||||
if (mapSize % width != 0) {
|
||||
if (options.trim == 0 && !tilemap) {
|
||||
fatal(
|
||||
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)\n"
|
||||
"(To proceed anyway with this image width, try passing `-x %zu`)",
|
||||
mapSize,
|
||||
width,
|
||||
width - mapSize % width
|
||||
);
|
||||
}
|
||||
fatal(
|
||||
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)",
|
||||
mapSize,
|
||||
|
||||
Reference in new issue
Block a user