aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-04-11 17:04:31 +0300
committerEli Zaretskii2022-04-11 17:04:31 +0300
commita715f2fbe70bb4cbb961e82af95e2965030b4513 (patch)
treeedeb00b4f0df8ff7d0622134e751a108e48515b3 /src
parent68ec0ffa2181d7e061bc4799798be0b2344d6a6b (diff)
downloademacs-a715f2fbe70bb4cbb961e82af95e2965030b4513.tar.gz
emacs-a715f2fbe70bb4cbb961e82af95e2965030b4513.zip
; * src/image.c (gif_load): Fix compilation error on MS-Windows.
Diffstat (limited to 'src')
-rw-r--r--src/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index f28eb5eb6e1..c48fd9d8682 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9008,7 +9008,11 @@ gif_load (struct frame *f, struct image *img)
9008 9008
9009 /* We have animation data in the cache, so copy it over so that we 9009 /* We have animation data in the cache, so copy it over so that we
9010 can alter it. */ 9010 can alter it. */
9011#ifdef HAVE_NTGUI
9012 int cache_image_size = width * height * ximg->info.bmiHeader.biBitCount / 8;
9013#else
9011 int cache_image_size = width * height * ximg->bits_per_pixel / 8; 9014 int cache_image_size = width * height * ximg->bits_per_pixel / 8;
9015#endif
9012 if (cache && cache->temp) 9016 if (cache && cache->temp)
9013 { 9017 {
9014 memcpy (ximg->data, cache->temp, cache_image_size); 9018 memcpy (ximg->data, cache->temp, cache_image_size);