take out the test for size in mkgfx.c to make it more general
This commit is contained in:
parent
1b4cbfae63
commit
51fda759cc
|
@ -211,14 +211,6 @@ int do_convert(const char *infilename, const char *outfilename)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((image_width != 320) || (image_height != 240))
|
|
||||||
{
|
|
||||||
readpng_cleanup(1);
|
|
||||||
fclose(fpin);
|
|
||||||
fprintf(stderr, "%s: image is %lux%lu, should be 320x240\n", infilename, image_width, image_height);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (readpng_get_bgcolor(infilename, &bg_red, &bg_green, &bg_blue))
|
if (readpng_get_bgcolor(infilename, &bg_red, &bg_green, &bg_blue))
|
||||||
{
|
{
|
||||||
readpng_cleanup(1);
|
readpng_cleanup(1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user