view etc/images/cancel.xpm @ 83436:f67e432d150c

Fix crash in lookup_image on termcap frames. * src/xdisp.c (get_glyph_string_clip_rects): Add extra parentheses and braces to prevent compiler warnings. (calc_pixel_width_or_height): Add xassert to check that the frame is alive. Don't call `lookup_image' on a termcap frame. * image.c (lookup_image): Don't initialize `c' until the xasserts have been run. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-476
author Karoly Lorentey <lorentey@elte.hu>
date Fri, 30 Dec 2005 05:29:31 +0000
parents 28718fa5d988
children
line wrap: on
line source

/* XPM */
static char *magick[] = {
/* columns rows colors chars-per-pixel */
"24 24 5 1",
"  c #01c601c601c6",
". c Gray40",
"X c #a527a527a527",
"o c #da22da22da22",
"O c None",
/* pixels */
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOO       OOOOOOOOO",
"OOOOOO  XXooXX.  OOOOOOO",
"OOOOO XooooooooX. OOOOOO",
"OOOOO oooooooooo. OOOOOO",
"OOOO Xooo ooo XoX. OOOOO",
"OOOO Xoo   o   XXX OOOOO",
"OOOO oooo     XoXX OOOOO",
"OOOO Xoooo   ooXXX OOOOO",
"OOOO Xooo     OXX. OOOOO",
"OOOO Xoo   o   XX. OOOOO",
"OOOO .Xoo ooX XX.. OOOOO",
"OOOOO XXOoXoXXX.. OOOOOO",
"OOOOO XXXXXXXXX.. OOOOOO",
"OOOOOO  XXXX...  OOOOOOO",
"OOOOOOOO       OOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO",
"OOOOOOOOOOOOOOOOOOOOOOOO"
};