57 else if((name [0] ==
'@') || (
strncmp(name,
"xpm:", 4) == 0)) {
62 int startn = (name [0] ==
'@') ? 1 : 4;
68 fprintf(
stderr,
"XPM support disabled, ignoring image %s\n", name);
72 else if(
strncmp(name,
"jpeg:", 5) == 0) {
80 fprintf(
stderr,
"JPEG support disabled, ignoring image %s\n", name);
84 else if((
strncmp(name,
"xwd:", 4) == 0) || (name [0] ==
'|')) {
85 int startn = (name [0] ==
'|') ? 0 : 4;
92 else if(
strncmp(name,
":xpm:", 5) == 0) {
103 else if(
strncmp(name,
"%xpm:", 5) == 0) {
114 else if(name [0] ==
':') {
115 unsigned int width, height;
128 if(
Scr->rootGC == (
GC) 0) {
134 XCopyPlane(
dpy,
pm, image->
pixmap,
Scr->rootGC, 0, 0, width, height, 0, 0,
136 image->
width = width;
215 if(name[0] ==
'~' && name[1] ==
'/') {
232 if(
Scr->PixmapDirectory) {
234 char *
p =
Scr->PixmapDirectory;
289 if(
stmp[1] ==
'\0') {
308#define ANIM_PATHLEN 256
314 fprintf(
stderr,
"%s(): generated filename for '%s' #%d longer than %d.\n",
353 fprintf(
stderr,
"Cannot find any image frames for '%s'\n", name);
Image * GetImage(const char *name, ColorPair cp)
Image * get_image_anim_cp(const char *name, ColorPair cp, Image *(*imgloader)(const char *, ColorPair))
char * ExpandPixmapPath(const char *name)
void FreeImage(Image *image)
Image * GetBitmapImage(const char *name, ColorPair cp)
Pixmap get_builtin_plain_pixmap(const char *name, unsigned int *widthp, unsigned int *heightp)
Image * get_builtin_scalable_pixmap(const char *name, ColorPair cp)
Image * get_builtin_animated_pixmap(const char *name, ColorPair cp)
Image * GetJpegImage(const char *name)
Image * GetXpmImage(const char *name, ColorPair cp)
Image * GetXwdImage(const char *name, ColorPair cp)
void * LookInNameList(name_list *list_head, const char *name)
void AddToList(name_list **list_head, const char *name, void *ptr)