[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master eebb7c8: Fix compilation of image.c on non-Cairo systems
From: |
Lars Ingebrigtsen |
Subject: |
master eebb7c8: Fix compilation of image.c on non-Cairo systems |
Date: |
Fri, 11 Dec 2020 10:02:59 -0500 (EST) |
branch: master
commit eebb7c8a699614934e0b054536d9c6f102b59e34
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix compilation of image.c on non-Cairo systems
* src/image.c (image_frame_cache_size): pixmap->width etc is only
defined on Cairo. Return 0 for now on other systems.
---
src/image.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/image.c b/src/image.c
index 38887ce..8607b33 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1805,9 +1805,11 @@ image_frame_cache_size (struct frame *f)
{
struct image *img = c->images[i];
+#ifdef USE_CAIRO
if (img)
total += img->pixmap->width * img->pixmap->height *
img->pixmap->bits_per_pixel / 8;
+#endif
}
return total;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master eebb7c8: Fix compilation of image.c on non-Cairo systems,
Lars Ingebrigtsen <=