From eebb7c8a699614934e0b054536d9c6f102b59e34 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 11 Dec 2020 16:02:50 +0100 Subject: [PATCH] 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 38887ced25b..8607b33a7a8 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; } -- 2.39.2