Commit 73c1a752 authored by Manish Singh's avatar Manish Singh
Browse files

app/Makefile.am use -DREGEX_MALLOC, seems to be more portable

* app/Makefile.am
* plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
seems to be more portable

* plug-ins/png/png.c: use a default gamma of 2.2 when gamma
correction isn't enabled

-Yosh
parent 12085bcb
Sat Jan 2 15:26:31 PST 1999 Manish Singh <yosh@gimp.org>
* app/Makefile.am
* plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
seems to be more portable
* plug-ins/png/png.c: use a default gamma of 2.2 when gamma
correction isn't enabled
Fri Jan 1 19:28:23 PST 1999 Manish Singh <yosh@gimp.org>
* app/blend.c: remove bogus constification
......
......@@ -355,6 +355,7 @@ CPPFLAGS = \
-DDATADIR=\""$(gimpdatadir)"\" \
-DGIMPDIR=\""$(gimpdir)"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-DREGEX_MALLOC \
@GIMP_THREAD_FLAGS@
INCLUDES = \
......
......@@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \
......
......@@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \
......
......@@ -37,6 +37,16 @@
* Revision History:
*
* $Log$
* Revision 1.11 1999/01/02 23:27:58 yosh
* * app/Makefile.am
* * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
* seems to be more portable
*
* * plug-ins/png/png.c: use a default gamma of 2.2 when gamma
* correction isn't enabled
*
* -Yosh
*
* Revision 1.10 1998/11/09 02:04:34 yosh
* * Makefile.am
* * README.i18n: new file, explains i18n stuff
......@@ -143,6 +153,7 @@
#define PLUG_IN_VERSION "1.1.6 - 17 May 1998"
#define SCALE_WIDTH 125
#define DEFAULT_GAMMA 2.20
/*
* Structures...
......@@ -623,7 +634,7 @@ save_image(char *filename, /* I - File to save to */
guchar **pixels, /* Pixel rows */
*pixel; /* Pixel data */
char progress[255]; /* Title for progress display... */
gdouble gamma;
/*
* Setup the PNG data structures...
......@@ -681,10 +692,12 @@ save_image(char *filename, /* I - File to save to */
png_set_compression_level(pp, pngvals.compression_level);
gamma = gimp_gamma();
info->width = drawable->width;
info->height = drawable->height;
info->bit_depth = 8;
info->gamma = gimp_gamma();
info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA;
info->sig_bit.red = 8;
info->sig_bit.green = 8;
info->sig_bit.blue = 8;
......
......@@ -37,6 +37,16 @@
* Revision History:
*
* $Log$
* Revision 1.11 1999/01/02 23:27:58 yosh
* * app/Makefile.am
* * plug-ins/script-fu/scripts/Makefile.am: use -DREGEX_MALLOC,
* seems to be more portable
*
* * plug-ins/png/png.c: use a default gamma of 2.2 when gamma
* correction isn't enabled
*
* -Yosh
*
* Revision 1.10 1998/11/09 02:04:34 yosh
* * Makefile.am
* * README.i18n: new file, explains i18n stuff
......@@ -143,6 +153,7 @@
#define PLUG_IN_VERSION "1.1.6 - 17 May 1998"
#define SCALE_WIDTH 125
#define DEFAULT_GAMMA 2.20
/*
* Structures...
......@@ -623,7 +634,7 @@ save_image(char *filename, /* I - File to save to */
guchar **pixels, /* Pixel rows */
*pixel; /* Pixel data */
char progress[255]; /* Title for progress display... */
gdouble gamma;
/*
* Setup the PNG data structures...
......@@ -681,10 +692,12 @@ save_image(char *filename, /* I - File to save to */
png_set_compression_level(pp, pngvals.compression_level);
gamma = gimp_gamma();
info->width = drawable->width;
info->height = drawable->height;
info->bit_depth = 8;
info->gamma = gimp_gamma();
info->gamma = gamma != 1.00 ? gamma : DEFAULT_GAMMA;
info->sig_bit.red = 8;
info->sig_bit.green = 8;
info->sig_bit.blue = 8;
......
......@@ -46,6 +46,9 @@ DEPS = \
script_fu_DEPENDENCIES = $(DEPS)
CPPFLAGS = \
-DREGEX_MALLOC
.PHONY: files
files:
......
......@@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \
......
......@@ -1207,7 +1207,7 @@ typedef struct
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
char *destination; \
/* char *destination; */ \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment