rem: wwarning(_("could not render gradient: %s"), RErrorString);
add: wwarning(_("could not render gradient: %s"), RMessageForError(RErrorCode));
context: renderTexture(WScreen *scr, WTexture *texture, int width, int height, 	      int bwidth, int bheight, int left, int right,	      Pixmap *title, Pixmap *lbutton, Pixmap *rbutton){    RImage *img;    RImage *limg, *rimg, *mimg;    RColor color1, color2;    int i, x, w;        *title = None;    *lbutton = None;    *rbutton = None;        switch (texture->any.type) {     case WTEX_DGRADIENT:     case WTEX_VGRADIENT:     case WTEX_HGRADIENT:     case WTEX_MHGRADIENT:     case WTEX_MVGRADIENT:     case WTEX_MDGRADIENT:	if (texture->any.type==WTEX_DGRADIENT	    || texture->any.type==WTEX_MDGRADIENT)	    i = RGRD_DIAGONAL;	else if (texture->any.type==WTEX_HGRADIENT 		 || texture->any.type==WTEX_MHGRADIENT)	    i = RGRD_HORIZONTAL;	else	    i = RGRD_VERTICAL;		if (texture->any.type==WTEX_MHGRADIENT	    || texture->any.type==WTEX_MDGRADIENT	    || texture->any.type==WTEX_MVGRADIENT)	    img = RRenderMultiGradient(width, height,				       &(texture->mgradient.colors[1]), i);	else {	    color1.red = texture->gradient.color1.red >> 8;	    color1.green = texture->gradient.color1.green >> 8;	    color1.blue = texture->gradient.color1.blue >> 8;	    color2.red = texture->gradient.color2.red >> 8;	    color2.green = texture->gradient.color2.green >> 8;	    color2.blue = texture->gradient.color2.blue >> 8;	    	    img = RRenderGradient(width, height, &color1, &color2, i);        }        break;	     case WTEX_PIXMAP:        img = wTextureRenderImage(texture, width, height, WREL_FLAT);        break;	     default:        img = NULL;    }        if (!img) {        wwarning(_("could not render gradient: %s"), RErrorString);        return;    }        if (wPreferences.new_style) {	if (left) {	    limg = RGetSubImage(img, 0, 0, bwidth, bheight);	} else	    limg = NULL;		x = 0;	w = img->width;		if (limg) {	    RBevelImage(limg, RBEV_RAISED2);	    if (!RConvertImage(scr->rcontext, limg, lbutton)) {		wwarning(_("error rendering image:%s"), RErrorString);	    }	    x += limg->width;	    w -= limg->width;	    RDestroyImage(limg);	}		if (right) {	    rimg = RGetSubImage(img, width - bwidth, 0,	bwidth, bheight);	} else	    rimg = NULL;		if (rimg) {	    RBevelImage(rimg, RBEV_RAISED2);	    if (!RConvertImage(scr->rcontext, rimg, rbutton)) {		wwarning(_("error rendering image:%s"), RErrorString);	    }	    w -= rimg->width;	    RDestroyImage(rimg);	}		if (w!=width) {	    mimg = RGetSubImage(img, x, 0, w, img->height);	    RBevelImage(mimg, RBEV_RAISED2);	    if (!RConvertImage(scr->rcontext, mimg, title)) {		wwarning(_("error rendering image:%s"), RErrorString);	    }	    RDestroyImage(mimg);	} else {	    RBevelImage(img, RBEV_RAISED2);	    	    if (!RConvertImage(scr->rcontext, img, title)) {		wwarning(_("error rendering image:%s"), RErrorString);	    }	}    } else {	RBevelImage(img, RBEV_RAISED2);	if (!RConvertImage(scr->rcontext, img, title)) {	    wwarning(_("error rendering image:%s"), RErrorString);	}    }    RDestroyImage(img);}