mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Remove incorrect check for reversed image width
That check was when the image width was in tiles, and another check right below is the correct equivalent for the new pixel-unit argument
This commit is contained in:
@@ -115,11 +115,6 @@ void reverse() {
|
|||||||
options.maxNbTiles[0], options.maxNbTiles[1]);
|
options.maxNbTiles[0], options.maxNbTiles[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nbTileInstances % options.reversedWidth) {
|
|
||||||
fatal("Image size (%zu tiles) is not divisible by the provided stride (%zu tiles), cannot "
|
|
||||||
"determine image dimensions",
|
|
||||||
nbTileInstances, options.reversedWidth);
|
|
||||||
}
|
|
||||||
size_t width, height;
|
size_t width, height;
|
||||||
size_t usefulWidth = options.reversedWidth - options.inputSlice[1] - options.inputSlice[3];
|
size_t usefulWidth = options.reversedWidth - options.inputSlice[1] - options.inputSlice[3];
|
||||||
if (usefulWidth % 8 != 0) {
|
if (usefulWidth % 8 != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user