More conservative resolution behaviour in loading PNGs

This commit is contained in:
Nick Lamb /GIMP 2000-01-29 00:39:18 +00:00
parent b58e4f0ded
commit da57754eb5
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Sat Jan 29 22:32:30 GMT 2000 Nick Lamb <njl195@zepler.org.uk>
* plug-ins/common/png.c: More conservative resolution behaviour
Sat Jan 29 22:54:11 CET 2000 Stanislav Brabec <utx@penguin.cz>
* app/convert.c: Typo fix.

View File

@ -58,7 +58,7 @@
* Constants...
*/
#define PLUG_IN_VERSION "1.1.10 - 8 Nov 1999"
#define PLUG_IN_VERSION "1.1.11 - 29 Jan 2000"
#define SCALE_WIDTH 125
#define DEFAULT_GAMMA 2.20
@ -524,8 +524,8 @@ load_image (gchar *filename) /* I - File to load */
((double) info->y_pixels_per_unit) * 0.0254);
else /* set aspect ratio as resolution */
gimp_image_set_resolution(image,
((double) info->x_pixels_per_unit),
((double) info->y_pixels_per_unit));
((double) info->x_pixels_per_unit) * 72.0,
((double) info->y_pixels_per_unit)i * 72.0);
}
#endif /* GIMP_HAVE_RESOLUTION_INFO */