; * src/image.c (gif_load): Fix compilation error on MS-Windows.
This commit is contained in:
parent
68ec0ffa21
commit
a715f2fbe7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue