+ im->data = (char*)ret;
+}
+
+void TrueRenderControl::allocateColor(XColor *color) const
+{
+ const ScreenInfo *info = display->screenInfo(_screen);
+ if (!XAllocColor(**display, info->colormap(), color)) {
+ fprintf(stderr, "TrueRenderControl: color alloc error: rgb:%x/%x/%x\n",
+ color->red & 0xff, color->green & 0xff, color->blue & 0xff);
+ color->pixel = 0;
+ }