emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master be48dfe0b3 1/2: Revert "; * src/image.c (gif_load): Fix compilati


From: Lars Ingebrigtsen
Subject: master be48dfe0b3 1/2: Revert "; * src/image.c (gif_load): Fix compilation error on MS-Windows."
Date: Mon, 11 Apr 2022 10:53:10 -0400 (EDT)

branch: master
commit be48dfe0b3a80c0896f4d562c6a8f428ec91d19e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Revert "; * src/image.c (gif_load): Fix compilation error on MS-Windows."
    
    This reverts commit a715f2fbe70bb4cbb961e82af95e2965030b4513.
    
    This is fixed in a different way in a subsequent commit.
---
 src/image.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/image.c b/src/image.c
index c48fd9d868..f28eb5eb6e 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]