another big clean

This commit is contained in:
tTh
2022-09-21 00:06:11 +02:00
parent 1175eece63
commit a4e3d073f5
17 changed files with 261 additions and 438 deletions

View File

@@ -63,16 +63,14 @@ fprintf(stderr, "%s:%d %s ( %s, %d )\n", __FILE__, __LINE__,
__func__, filename, flags);
#endif
foo = Image_TGA_get_dims(filename, &width, &height);
if (foo)
{
if (foo) {
fprintf(stderr, "something is bad with %s : %d\n", filename, foo);
Image_print_error("explanation", foo);
return foo;
}
foo = 0;
switch(flags)
{
switch(flags) {
case 0:
printf("%8d %8d\n", width, height); break;
case 1: