* src/image.c (jpeg_load_body) [USE_CAIRO]: #ifdef out USE_SAFE_ALLOCA
and SAFE_FREE.
* src/xterm.c (x_composite_image) [USE_CAIRO]: #ifdef out unused function.
(x_draw_image_glyph_string) [USE_CAIRO]: #ifdef out unused variable pixmap.
colors generated, and mgr->cinfo.colormap is a two-dimensional array
of color indices in the range 0..mgr->cinfo.actual_number_of_colors.
No more than 255 colors will be generated. */
+#ifndef USE_CAIRO
USE_SAFE_ALLOCA;
+#endif
{
if (mgr->cinfo.out_color_components > 2)
ir = 0, ig = 1, ib = 2;
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);
-#endif
SAFE_FREE ();
+#endif
return 1;
}
}
+#ifndef USE_CAIRO
static void
x_composite_image (struct glyph_string *s, Pixmap dest,
int srcX, int srcY, int dstX, int dstY,
srcX, srcY,
width, height, dstX, dstY);
}
+#endif /* !USE_CAIRO */
/* Draw foreground of image glyph string S. */
int box_line_hwidth = eabs (s->face->box_line_width);
int box_line_vwidth = max (s->face->box_line_width, 0);
int height;
+#ifndef USE_CAIRO
Pixmap pixmap = None;
+#endif
height = s->height;
if (s->slice.y == 0)