mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 18:55:41 +00:00
Fix wrong error function used in RGBGFX
This commit is contained in:
1 parent
c0aff678e9
commit
702d9e0542
1 file changed
+2
-2
+2
-2
@@ -410,8 +410,8 @@ static void update_built_palette(png_color *palette,
|
||||
}
|
||||
if (!color_exists) {
|
||||
if (*num_colors == colors) {
|
||||
err(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).",
|
||||
depth, colors);
|
||||
errx(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).",
|
||||
depth, colors);
|
||||
}
|
||||
palette[*num_colors] = *pixel_color;
|
||||
(*num_colors)++;
|
||||
|
||||
Reference in new issue
Block a user