diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c index 91308c540b5..b37ba398d83 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -4483,7 +4483,6 @@ static void | |||
| 4483 | XPutPixel (XImagePtr ximg, int x, int y, COLORREF color) | 4483 | XPutPixel (XImagePtr ximg, int x, int y, COLORREF color) |
| 4484 | { | 4484 | { |
| 4485 | int width = ximg->info.bmiHeader.biWidth; | 4485 | int width = ximg->info.bmiHeader.biWidth; |
| 4486 | int height = ximg->info.bmiHeader.biHeight; | ||
| 4487 | unsigned char * pixel; | 4486 | unsigned char * pixel; |
| 4488 | 4487 | ||
| 4489 | /* True color images. */ | 4488 | /* True color images. */ |
| @@ -6752,7 +6751,7 @@ tiff_load (struct frame *f, struct image *img) | |||
| 6752 | TIFF *tiff; | 6751 | TIFF *tiff; |
| 6753 | int width, height, x, y, count; | 6752 | int width, height, x, y, count; |
| 6754 | uint32 *buf; | 6753 | uint32 *buf; |
| 6755 | int rc, rc2; | 6754 | int rc; |
| 6756 | XImagePtr ximg; | 6755 | XImagePtr ximg; |
| 6757 | tiff_memory_source memsrc; | 6756 | tiff_memory_source memsrc; |
| 6758 | Lisp_Object image; | 6757 | Lisp_Object image; |
| @@ -6840,8 +6839,8 @@ tiff_load (struct frame *f, struct image *img) | |||
| 6840 | rc = fn_TIFFReadRGBAImage (tiff, width, height, buf, 0); | 6839 | rc = fn_TIFFReadRGBAImage (tiff, width, height, buf, 0); |
| 6841 | 6840 | ||
| 6842 | /* Count the number of images in the file. */ | 6841 | /* Count the number of images in the file. */ |
| 6843 | for (count = 1, rc2 = 1; rc2; count++) | 6842 | for (count = 1; fn_TIFFSetDirectory (tiff, count); count++) |
| 6844 | rc2 = fn_TIFFSetDirectory (tiff, count); | 6843 | continue; |
| 6845 | 6844 | ||
| 6846 | if (count > 1) | 6845 | if (count > 1) |
| 6847 | img->data.lisp_val = Fcons (Qcount, | 6846 | img->data.lisp_val = Fcons (Qcount, |