changeset 53190:053a4dfb6bd4

* dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM to compile on terminal configuration.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 29 Nov 2003 11:10:07 +0000
parents 2c1d6f1a791e
children 119702bcc6c0
files src/ChangeLog src/dispnew.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Nov 29 10:44:36 2003 +0000
+++ b/src/ChangeLog	Sat Nov 29 11:10:07 2003 +0000
@@ -1,5 +1,8 @@
 2003-11-29  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
 
+	* dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
+	to compile on terminal configuration.
+
 	* fileio.c (Fread_file_name): Check use_file_dialog also before
 	calling Fx_file_dialog.
 
--- a/src/dispnew.c	Sat Nov 29 10:44:36 2003 +0000
+++ b/src/dispnew.c	Sat Nov 29 11:10:07 2003 +0000
@@ -5726,11 +5726,13 @@
   *dx = x0 + it.first_visible_x - it.current_x;
   *dy = *y - it.current_y;
 
+#ifdef HAVE_WINDOW_SYSTEM
   if (it.what == IT_IMAGE
       && (img = IMAGE_FROM_ID (it.f, it.image_id)) != NULL
       && !NILP (img->spec))
     *object = img->spec;
   else
+#endif
     *object = STRINGP (it.string) ? it.string : w->buffer;
   *pos = it.current;
   *x = it.hpos;