rem: if (thai) {
add: if (language) {
context: renderTexture(WScreen *scr, WTexture *texture, int width, int height, 	      int bwidth, int bheight, int left, int right,	      Pixmap *title, Pixmap *lbutton, Pixmap *rbutton)#endif{    RImage *img;    RImage *limg, *rimg, *mimg;#ifdef XKB_BUTTON_HINT    RImage *timg;#endif    int x, w;    *title = None;    *lbutton = None;    *rbutton = None;#ifdef XKB_BUTTON_HINT    *tbutton = None;#endif    img = wTextureRenderImage(texture, width, height, WREL_FLAT);    if (!img) {        wwarning(_("could not render texture: %s"), RMessageForError(RErrorCode));        return;    }        if (wPreferences.new_style) {	if (left) {	    limg = RGetSubImage(img, 0, 0, bwidth, bheight);	} else	    limg = NULL;		x = 0;	w = img->width;    #ifdef XKB_BUTTON_HINT    if (thai) {	    timg = RGetSubImage(img, bwidth, 0, bwidth, bheight);	} else	    timg = NULL;#endif		if (limg) {	    RBevelImage(limg, RBEV_RAISED2);	    if (!RConvertImage(scr->rcontext, limg, lbutton)) {		wwarning(_("error rendering image:%s"), RMessageForError(RErrorCode));	    }	    x += limg->width;	    w -= limg->width;	    RDestroyImage(limg);	}#ifdef XKB_BUTTON_HINT    if (timg) {	    RBevelImage(timg, RBEV_RAISED2);	    if (!RConvertImage(scr->rcontext, timg, tbutton)) {		wwarning(_("error rendering image:%s"), RMessageForError(RErrorCode));	    }	    x += timg->width;	    w -= timg->width;	    RDestroyImage(timg);    }#endif		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"), RMessageForError(RErrorCode));	    }	    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"), RMessageForError(RErrorCode));	    }	    RDestroyImage(mimg);	} else {	    RBevelImage(img, RBEV_RAISED2);	    	    if (!RConvertImage(scr->rcontext, img, title)) {		wwarning(_("error rendering image:%s"), RMessageForError(RErrorCode));	    }	}    } else {	RBevelImage(img, RBEV_RAISED2);	if (!RConvertImage(scr->rcontext, img, title)) {	    wwarning(_("error rendering image:%s"), RMessageForError(RErrorCode));	}    }    RDestroyImage(img);}