mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Check before attempting to generate empty image
This causes a libpng warning then error, but print a better error message Fixes #1016
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "gfx/rgba.hpp"
|
||||
|
||||
struct Options {
|
||||
uint16_t reversedWidth = 0; // -r, in pixels
|
||||
uint16_t reversedWidth = 0; // -r, in tiles
|
||||
bool reverse() const { return reversedWidth != 0; }
|
||||
|
||||
bool useColorCurve = false; // -C
|
||||
|
||||
Reference in New Issue
Block a user