Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e0e30823
Commit
e0e30823
authored
Dec 08, 2004
by
Richard M. Stallman
Browse files
(our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE, init_image):
Use 1 rather than TRUE. TRUE's not always defined.
parent
3073399b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/ChangeLog
src/ChangeLog
+5
-0
src/image.c
src/image.c
+7
-7
No files found.
src/ChangeLog
View file @
e0e30823
2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
* image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
(init_image): Use 1 rather than TRUE. TRUE's not always defined.
2004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
...
...
src/image.c
View file @
e0e30823
...
...
@@ -6378,7 +6378,7 @@ our_fill_input_buffer (cinfo)
src->next_input_byte = buffer;
src->bytes_in_buffer = 2;
return
TRUE
;
return
1
;
}
...
...
@@ -6533,11 +6533,11 @@ jpeg_load (f, img)
jpeg_memory_src (&cinfo, SDATA (specified_data),
SBYTES (specified_data));
fn_jpeg_read_header (&cinfo,
TRUE
);
fn_jpeg_read_header (&cinfo,
1
);
/* Customize decompression so that color quantization will be used.
Start decompression. */
cinfo.quantize_colors =
TRUE
;
cinfo.quantize_colors =
1
;
fn_jpeg_start_decompress (&cinfo);
width = img->width = cinfo.output_width;
height = img->height = cinfo.output_height;
...
...
@@ -7552,7 +7552,7 @@ gif_load (f, img)
bg_color.blue = color.blue;
RGBBackColor (&bg_color);
SetGWorld (old_port, old_gdh);
SetMovieActive (movie,
TRUE
);
SetMovieActive (movie,
1
);
SetMovieGWorld (movie, ximg, NULL);
SampleNumToMediaTime (media, ino + 1, &time, NULL);
SetMovieTimeValue (movie, time);
...
...
@@ -7930,7 +7930,7 @@ DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "")
define_image_type (image_type, init_lib_fn (libraries))
#else
#define CHECK_LIB_AVAILABLE(image_type, init_lib_fn, libraries) \
define_image_type (image_type,
TRUE
)
define_image_type (image_type,
1
)
#endif /* HAVE_NTGUI */
DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0,
...
...
@@ -8114,8 +8114,8 @@ init_image ()
{
image_types = NULL;
define_image_type (&xbm_type,
TRUE
);
define_image_type (&pbm_type,
TRUE
);
define_image_type (&xbm_type,
1
);
define_image_type (&pbm_type,
1
);
#ifdef MAC_OS
/* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment