]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "; * src/image.c (gif_load): Fix compilation error on MS-Windows."
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Apr 2022 14:45:14 +0000 (16:45 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Apr 2022 14:45:14 +0000 (16:45 +0200)
This reverts commit a715f2fbe70bb4cbb961e82af95e2965030b4513.

This is fixed in a different way in a subsequent commit.

src/image.c

index c48fd9d8682f87d97868e82f165038d8f371fc44..f28eb5eb6e1922cea4f55d6ab620cf316f99b069 100644 (file)
@@ -9008,11 +9008,7 @@ gif_load (struct frame *f, struct image *img)
 
   /* We have animation data in the cache, so copy it over so that we
      can alter it.  */
-#ifdef HAVE_NTGUI
-  int cache_image_size = width * height * ximg->info.bmiHeader.biBitCount / 8;
-#else
   int cache_image_size = width * height * ximg->bits_per_pixel / 8;
-#endif
   if (cache && cache->temp)
     {
       memcpy (ximg->data, cache->temp, cache_image_size);