projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ec0ff
)
; * src/image.c (gif_load): Fix compilation error on MS-Windows.
author
Eli Zaretskii
<eliz@gnu.org>
Mon, 11 Apr 2022 14:04:31 +0000
(17:04 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Mon, 11 Apr 2022 14:04:31 +0000
(17:04 +0300)
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index f28eb5eb6e1922cea4f55d6ab620cf316f99b069..c48fd9d8682f87d97868e82f165038d8f371fc44 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-9008,7
+9008,11
@@
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);