diff options
| author | Lars Ingebrigtsen | 2022-04-11 16:45:14 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-11 16:45:14 +0200 |
| commit | be48dfe0b3a80c0896f4d562c6a8f428ec91d19e (patch) | |
| tree | 6fdc8294b43f692398070bf23f55b3614a82f57f /src | |
| parent | 26db1ca80e459a640cc6648fb7f94c873def3ddd (diff) | |
| download | emacs-be48dfe0b3a80c0896f4d562c6a8f428ec91d19e.tar.gz emacs-be48dfe0b3a80c0896f4d562c6a8f428ec91d19e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c index c48fd9d8682..f28eb5eb6e1 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -9008,11 +9008,7 @@ 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 | ||
| 9014 | int cache_image_size = width * height * ximg->bits_per_pixel / 8; | 9011 | int cache_image_size = width * height * ximg->bits_per_pixel / 8; |
| 9015 | #endif | ||
| 9016 | if (cache && cache->temp) | 9012 | if (cache && cache->temp) |
| 9017 | { | 9013 | { |
| 9018 | memcpy (ximg->data, cache->temp, cache_image_size); | 9014 | memcpy (ximg->data, cache->temp, cache_image_size); |