- 20 Aug, 2013 2 commits
-
-
Kenichi Handa authored
-
Paul Eggert authored
(struct animation_cache): Make signature a flexible array member. All uses changed. This is a tad slower but may insulate us better from future changes to ImageMagick.
-
- 19 Aug, 2013 6 commits
-
-
Paul Eggert authored
(SIGNATURE_DIGESTSIZE): New constant. (struct animation_cache): Make 'signature' a fixed size array of bytes. (imagemagick_create_cache): Copy the signature. This saves several KB of memory that ImageMagick wastes per signature. Don't bother updating the update_time, as the caller does that now. (imagemagick_prune_animation_cache): Don't destroy the signature, as it's a fixed size struct member now. (imagemagick_get_animation_cache): Always destroy the signature, as it's now imagemagick_create_cache's responsibility to copy it. Avoid duplicate calls to strcmp and to imagemagick_create_cache, and use memcmp rather than strcmp. eassert that ImageMagick returns a signature of the specified length.
-
Lars Magne Ingebrigtsen authored
-
Lars Magne Ingebrigtsen authored
Bug introduced by 2013-08-19T07:01:37Z!eggert@cs.ucla.edu, which obviously hadn't even been tested once.
-
Paul Eggert authored
Fix some other minor performance problems while we're at it. (imagemagick_create_cache): Clear just the members that need clearing. Don't set update_time, as caller does that now. (imagemagick_prune_animation_cache, imagemagick_get_animation_cache): Simplify by using pointer-to-pointer instead of a prev pointer. (imagemagick_prune_animation_cache): Use make_emacs_time rather than EMACS_TIME_FROM_DOUBLE, and DestroyString rather than free. (imagemagick_get_animation_cache): Don't xstrdup the image signature; it's already a copy. Free the signature probe unless it's cached.
-
Paul Eggert authored
This was introduced by my 2013-08-12 fix for Bug#15035. Fixes: debbugs:15106
-
Dmitry Antipov authored
(imagemagick_prune_animation_cache): Now static.
-
- 18 Aug, 2013 2 commits
-
-
Lars Magne Ingebrigtsen authored
pruning all entries.
-
Ken Brown authored
* src/sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger static heap if ENABLE_CHECKING is defined. (max_bss_sbrk_ptr): New variable. (bss_sbrk): Use it. (report_sheap_usage): Report maximum static heap usage instead of ending static heap usage.
-
- 17 Aug, 2013 1 commit
-
-
Eli Zaretskii authored
src/decompress.c (Fzlib_available_p) [WINDOWSNT]: Update the value of zlib_initialized according to the results of calling init_zlib_functions.
-
- 16 Aug, 2013 6 commits
-
-
Xue Fuqiao authored
-
Lars Magne Ingebrigtsen authored
The apparently only saved time on invalid animated images, and slowed down everything else. Optimise for the common case.
-
Lars Magne Ingebrigtsen authored
-
Lars Magne Ingebrigtsen authored
-
Xue Fuqiao authored
-
Xue Fuqiao authored
* doc/lispref/positions.texi (Character Motion): * doc/lispref/markers.texi (Moving Markers): (Creating Markers): Comment out undefined behavior. * src/marker.c (set_marker): Remove documentation of undefined behavior.
-
- 15 Aug, 2013 14 commits
-
-
Lars Magne Ingebrigtsen authored
(imagemagick_compute_animated_image): Allow images that say they have sub-images that are bigger than the main image, but just crop them.
-
Lars Magne Ingebrigtsen authored
(imagemagick_compute_animated_image): Setting the iterator row to zero is apparently not allowed.
-
Lars Magne Ingebrigtsen authored
* image.c (imagemagick_compute_animated_image): Animate correctly when sub-images are smaller than the main image.
-
Jan Djärv authored
Fixes: debbugs:15001
-
Lars Magne Ingebrigtsen authored
-
Ken Brown authored
-
Paul Eggert authored
* frame.c (delete_frame): * xdisp.c (next_element_from_display_vector): Avoid uninitialized local. * image.c (imagemagick_compute_animated_image): Port to C89. Prefer usual GNU indentation style for loops. Be more careful about bizarrely large sizes, by using ptrdiff_t instead of int.
-
Lars Magne Ingebrigtsen authored
(imagemagick_compute_animated_image): Fix some compilation warnings. Implement a very simple cache to make the animation usable at all, but it should be replaced with a per-image cache.
-
Dmitry Antipov authored
* frame.c (delete_frame): Prefer fast ad-hoc loop to next_frame.
-
Eli Zaretskii authored
src/xdisp.c (next_element_from_display_vector): Support 'box' face attribute in the face definitions of a display vector.
-
Eli Zaretskii authored
src/xdisp.c (compute_window_start_on_continuation_line): When WORD_WRAP is in effect, use move_it_to instead of move_it_by_lines to make sure we end up setting the window start at the leftmost visible character of the display line. This avoids funky horizontal shifting because the window start is not kept on the same position.
-
Lars Magne Ingebrigtsen authored
Fixes: debbugs:14700
-
Dmitry Antipov authored
to do `for' loops over alist values. * buffer.h (FOR_EACH_BUFFER): * process.c (FOR_EACH_PROCESS): Use it. (handle_child_signal, status_notify, Fget_buffer_process) (kill_buffer_processes): Use FOR_EACH_PROCESS.
-
Dmitry Antipov authored
(tty_free_frame_resources, delete_tty): Prefer eassert to emacs_abort. * image.c (make_image_cache): For struct image_cache, prefer xmalloc to xzalloc and so avoid redundant call to memset. * xterm.c (x_term_init): Avoid unnecessary initializations of dpyinfo members because it is allocated with xzalloc and so already zeroed.
-
- 14 Aug, 2013 9 commits
-
-
Ken Brown authored
-
Dmitry Antipov authored
* lisp.h (xlispstrdupa): New macro. (xlispstrdup): New prototype. * alloc.c (xlispstrdup): New function. * callint.c (Fcall_interactively): * fileio.c (Ffile_name_directory, Fexpand_file_name) (Fsubstitute_in_file_name): * frame.c (Fmake_terminal_frame): Use xlispstrdupa. * image.c (x_create_bitmap_from_file): * w32term.c (w32_term_init): * xterm.c (x_term_init): Use xlispstrdup.
-
Xue Fuqiao authored
-
Lars Magne Ingebrigtsen authored
There's still some problems with background color settings, though. Fixes: debbugs:14700
-
Lars Magne Ingebrigtsen authored
-
Dmitry Antipov authored
non-zero windows_or_buffers_changed, clear current_matrix_up_to_date_p and so do not call to try_cursor_movement for that window.
-
Paul Eggert authored
-
Paul Eggert authored
Use changed. This avoids the need to call xmalloc and for the caller to call xfree, and avoids memory leaks in some situations.
-
Dmitry Antipov authored
(try_window, try_window_reusing_current_matrix, try_window_id): Use it.
-