hackathon-dev #1
@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user