emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9ab5142 1/2: * src/image.c (FRAME_SCALE_FACTOR): Define only when


From: Philipp Stephani
Subject: master 9ab5142 1/2: * src/image.c (FRAME_SCALE_FACTOR): Define only when needed.
Date: Thu, 11 Mar 2021 05:05:55 -0500 (EST)

branch: master
commit 9ab51428cd53f1e3160fad85c952b956d18ed442
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    * src/image.c (FRAME_SCALE_FACTOR): Define only when needed.
---
 src/image.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/image.c b/src/image.c
index 485e08a..025ee72 100644
--- a/src/image.c
+++ b/src/image.c
@@ -135,11 +135,13 @@ typedef struct ns_bitmap_record Bitmap_Record;
 # define COLOR_TABLE_SUPPORT 1
 #endif
 
+#ifdef HAVE_RSVG
 #if defined HAVE_NS
 # define FRAME_SCALE_FACTOR(f) ns_frame_scale_factor (f)
 #else
 # define FRAME_SCALE_FACTOR(f) 1;
 #endif
+#endif
 
 static void image_disable_image (struct frame *, struct image *);
 static void image_edge_detection (struct frame *, struct image *, Lisp_Object,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]