Mercurial > emacs
diff src/dispnew.c @ 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 | b246aabe1c49 |
children | 4250e7e26247 9c540a878edf |
line wrap: on
line diff
--- 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;