version 1.2 | | version 1.3 |
---|
| | |
| | |
CnvInitialize(self->shell); | | CnvInitialize(self->shell); |
| | |
if (displaymode == Dm_Bitmap) { | | if (ReadImages(self->display, &pixmaps, &masks, &colormap, displaymode)) { |
pixmaps = ReadBitmaps(self->display); | | |
} | | |
if (displaymode == Dm_Pixmap) { | | |
if (ReadPixmaps(self->display, &pixmaps, &masks, &colormap)) { | | |
/* We really should do something better than this */ | | /* We really should do something better than this */ |
fprintf(stderr,"Not enough space in colormap - switch colormap.\n"); | | fprintf(stderr,"Not enough space in colormap - switch colormap.\n"); |
/* exit(1);*/ | | /* exit(1);*/ |
} | | } |
} | | |
XtVaSetValues(self->shell, XtNcolormap, colormap, NULL); | | XtVaSetValues(self->shell, XtNcolormap, colormap, NULL); |
| | |
/*** creating ***/ | | /*** creating ***/ |