Commit 992126de authored by Jan Djärv's avatar Jan Djärv
Browse files

xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM

to compile on non-window system.
parent 31da0380
2004-03-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
to compile on non-window system.
2004-03-19 Kim F. Storm <storm@cua.dk>
* dispextern.h (calc_pixel_width_or_height): Add prototype.
......
......@@ -16886,6 +16886,7 @@ calc_pixel_width_or_height (res, it, prop, font, width_p, align_to)
 
if (SYMBOLP (car))
{
#ifdef HAVE_WINDOW_SYSTEM
if (valid_image_p (prop))
{
int id = lookup_image (it->f, prop);
......@@ -16893,7 +16894,7 @@ calc_pixel_width_or_height (res, it, prop, font, width_p, align_to)
 
return OK_PIXELS (width_p ? img->width : img->height);
}
#endif
if (EQ (car, Qplus) || EQ (car, Qminus))
{
int first = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment