aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-08 17:56:08 +0000
committerRichard M. Stallman2004-12-08 17:56:08 +0000
commite0e308237aa561875ba8ed2bb52086eb0d06f648 (patch)
treed773752d026b4e13479eb2a24f8d7fb4e51b89b2
parent3073399bdafd5283661fae867983d0d30c7f2536 (diff)
downloademacs-e0e308237aa561875ba8ed2bb52086eb0d06f648.tar.gz
emacs-e0e308237aa561875ba8ed2bb52086eb0d06f648.zip
(our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE, init_image):
Use 1 rather than TRUE. TRUE's not always defined.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 28030aef0e3..39401c9453c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-12-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
5
12004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around 8 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
diff --git a/src/image.c b/src/image.c
index d1925cf36e4..18ffc2db3a4 100644
--- a/src/image.c
+++ b/src/image.c
@@ -6378,7 +6378,7 @@ our_fill_input_buffer (cinfo)
6378 6378
6379 src->next_input_byte = buffer; 6379 src->next_input_byte = buffer;
6380 src->bytes_in_buffer = 2; 6380 src->bytes_in_buffer = 2;
6381 return TRUE; 6381 return 1;
6382} 6382}
6383 6383
6384 6384
@@ -6533,11 +6533,11 @@ jpeg_load (f, img)
6533 jpeg_memory_src (&cinfo, SDATA (specified_data), 6533 jpeg_memory_src (&cinfo, SDATA (specified_data),
6534 SBYTES (specified_data)); 6534 SBYTES (specified_data));
6535 6535
6536 fn_jpeg_read_header (&cinfo, TRUE); 6536 fn_jpeg_read_header (&cinfo, 1);
6537 6537
6538 /* Customize decompression so that color quantization will be used. 6538 /* Customize decompression so that color quantization will be used.
6539 Start decompression. */ 6539 Start decompression. */
6540 cinfo.quantize_colors = TRUE; 6540 cinfo.quantize_colors = 1;
6541 fn_jpeg_start_decompress (&cinfo); 6541 fn_jpeg_start_decompress (&cinfo);
6542 width = img->width = cinfo.output_width; 6542 width = img->width = cinfo.output_width;
6543 height = img->height = cinfo.output_height; 6543 height = img->height = cinfo.output_height;
@@ -7552,7 +7552,7 @@ gif_load (f, img)
7552 bg_color.blue = color.blue; 7552 bg_color.blue = color.blue;
7553 RGBBackColor (&bg_color); 7553 RGBBackColor (&bg_color);
7554 SetGWorld (old_port, old_gdh); 7554 SetGWorld (old_port, old_gdh);
7555 SetMovieActive (movie, TRUE); 7555 SetMovieActive (movie, 1);
7556 SetMovieGWorld (movie, ximg, NULL); 7556 SetMovieGWorld (movie, ximg, NULL);
7557 SampleNumToMediaTime (media, ino + 1, &time, NULL); 7557 SampleNumToMediaTime (media, ino + 1, &time, NULL);
7558 SetMovieTimeValue (movie, time); 7558 SetMovieTimeValue (movie, time);
@@ -7930,7 +7930,7 @@ DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "")
7930 define_image_type (image_type, init_lib_fn (libraries)) 7930 define_image_type (image_type, init_lib_fn (libraries))
7931#else 7931#else
7932#define CHECK_LIB_AVAILABLE(image_type, init_lib_fn, libraries) \ 7932#define CHECK_LIB_AVAILABLE(image_type, init_lib_fn, libraries) \
7933 define_image_type (image_type, TRUE) 7933 define_image_type (image_type, 1)
7934#endif /* HAVE_NTGUI */ 7934#endif /* HAVE_NTGUI */
7935 7935
7936DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0, 7936DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0,
@@ -8114,8 +8114,8 @@ init_image ()
8114{ 8114{
8115 image_types = NULL; 8115 image_types = NULL;
8116 8116
8117 define_image_type (&xbm_type, TRUE); 8117 define_image_type (&xbm_type, 1);
8118 define_image_type (&pbm_type, TRUE); 8118 define_image_type (&pbm_type, 1);
8119 8119
8120#ifdef MAC_OS 8120#ifdef MAC_OS
8121 /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */ 8121 /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */