mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Mention libpng in its internal warning and error messages
This commit is contained in:
@@ -61,16 +61,16 @@ static std::vector<uint8_t> readInto(std::string const &path) {
|
||||
[[noreturn]]
|
||||
static void pngError(png_structp png, char const *msg) {
|
||||
fatal(
|
||||
"Error writing reversed image (\"%s\"): %s",
|
||||
static_cast<char const *>(png_get_error_ptr(png)),
|
||||
"libpng error while writing reversed image (\"%s\"): %s",
|
||||
reinterpret_cast<char const *>(png_get_error_ptr(png)),
|
||||
msg
|
||||
);
|
||||
}
|
||||
|
||||
static void pngWarning(png_structp png, char const *msg) {
|
||||
warnx(
|
||||
"While writing reversed image (\"%s\"): %s",
|
||||
static_cast<char const *>(png_get_error_ptr(png)),
|
||||
"libpng found while writing reversed image (\"%s\"): %s",
|
||||
reinterpret_cast<char const *>(png_get_error_ptr(png)),
|
||||
msg
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user