From: YAMAMOTO Mitsuharu Date: Sat, 10 Dec 2005 01:49:15 +0000 (+0000) Subject: (init_image) [MAC_OS]: Don't call EnterMovies. X-Git-Tag: emacs-pretest-22.0.90~5384 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dac5344bda6212378fe93780d27a00c840d87068;p=emacs.git (init_image) [MAC_OS]: Don't call EnterMovies. [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies. --- diff --git a/src/image.c b/src/image.c index d020b2ac394..8a6d40ae34f 100644 --- a/src/image.c +++ b/src/image.c @@ -7778,6 +7778,9 @@ gif_load (f, img) specified_file = image_spec_value (img->spec, QCfile, NULL); specified_data = image_spec_value (img->spec, QCdata, NULL); + /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */ + EnterMovies (); + if (NILP (specified_data)) { /* Read from a file */ @@ -8500,14 +8503,9 @@ meaning don't clear the cache. */); void init_image () { -#ifdef MAC_OS - /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */ - if (!inhibit_window_system) - EnterMovies (); -#ifdef MAC_OSX +#if defined (MAC_OSX) && TARGET_API_MAC_CARBON init_image_func_pointer (); #endif -#endif } /* arch-tag: 123c2a5e-14a8-4c53-ab95-af47d7db49b9