Deny pixmap creation if screen is not in 16/24 depth.

This commit is contained in:
Sanel Zukan 2007-06-20 11:01:44 +00:00
parent c153f4f114
commit d91784d0de

View File

@ -70,6 +70,9 @@ Pixmap create_xpixmap(Fl_Image* img, XImage* xim, Pixmap pix) {
n >>= 1;
bshift--;
}
} else {
EWARNING("Depth %i not supported, for now\n", fl_visual->depth);
return 0;
}
// assume display == 16 depth