mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Fix wrong error function used in RGBGFX
This commit is contained in:
@@ -410,7 +410,7 @@ static void update_built_palette(png_color *palette,
|
|||||||
}
|
}
|
||||||
if (!color_exists) {
|
if (!color_exists) {
|
||||||
if (*num_colors == colors) {
|
if (*num_colors == colors) {
|
||||||
err(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).",
|
errx(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).",
|
||||||
depth, colors);
|
depth, colors);
|
||||||
}
|
}
|
||||||
palette[*num_colors] = *pixel_color;
|
palette[*num_colors] = *pixel_color;
|
||||||
|
|||||||
Reference in New Issue
Block a user