From 3ff2d8133ad4f396ef23a8719225b9caacfcdd67 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 2 Jan 1999 23:47:48 +0000 Subject: [PATCH] Doh, thinko. -Yosh --- plug-ins/common/png.c | 7 ++++++- plug-ins/png/png.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/plug-ins/common/png.c b/plug-ins/common/png.c index eb90d14f25..bf989a1f51 100644 --- a/plug-ins/common/png.c +++ b/plug-ins/common/png.c @@ -37,6 +37,11 @@ * Revision History: * * $Log$ + * Revision 1.12 1999/01/02 23:47:48 yosh + * Doh, thinko. + * + * -Yosh + * * Revision 1.11 1999/01/02 23:27:58 yosh * * app/Makefile.am * * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC, @@ -697,7 +702,7 @@ save_image(char *filename, /* I - File to save to */ info->width = drawable->width; info->height = drawable->height; info->bit_depth = 8; - info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA; + info->gamma = 1.0 / (gamma != 1.00 ? gamma : DEFAULT_GAMMA); info->sig_bit.red = 8; info->sig_bit.green = 8; info->sig_bit.blue = 8; diff --git a/plug-ins/png/png.c b/plug-ins/png/png.c index eb90d14f25..bf989a1f51 100644 --- a/plug-ins/png/png.c +++ b/plug-ins/png/png.c @@ -37,6 +37,11 @@ * Revision History: * * $Log$ + * Revision 1.12 1999/01/02 23:47:48 yosh + * Doh, thinko. + * + * -Yosh + * * Revision 1.11 1999/01/02 23:27:58 yosh * * app/Makefile.am * * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC, @@ -697,7 +702,7 @@ save_image(char *filename, /* I - File to save to */ info->width = drawable->width; info->height = drawable->height; info->bit_depth = 8; - info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA; + info->gamma = 1.0 / (gamma != 1.00 ? gamma : DEFAULT_GAMMA); info->sig_bit.red = 8; info->sig_bit.green = 8; info->sig_bit.blue = 8;