rem: ROperateLine(img, RSubtractOperation, width-cwidth-2, 2, width-cwidth-2, height-1, &dark);
add: if (width > 1) ROperateLine(img, RSubtractOperation, width-cwidth-2, 2, width-cwidth-2, height-1, &dark);
context: renderResizebarTexture(WScreen *scr, WTexture *texture, int width, int height,		       int cwidth, Pixmap *pmap){    RImage *img;    RColor light;    RColor dark;    *pmap = None;    img = wTextureRenderImage(texture, width, height, WREL_FLAT);    if (!img) {        wwarning(_("could not render texture: %s"),		 RMessageForError(RErrorCode));        return;    }    light.alpha = 0;    light.red = light.green = light.blue = 80;    dark.alpha = 0;    dark.red = dark.green = dark.blue = 40;    ROperateLine(img, RSubtractOperation, 0, 0, width-1, 0, &dark);    ROperateLine(img, RAddOperation, 0, 1, width-1, 1, &light);    ROperateLine(img, RSubtractOperation, cwidth, 2, cwidth, height-1, &dark);    ROperateLine(img, RAddOperation, cwidth+1, 2, cwidth+1, height-1, &light);    ROperateLine(img, RSubtractOperation, width-cwidth-2, 2, width-cwidth-2,		 height-1, &dark);    ROperateLine(img, RAddOperation, width-cwidth-1, 2, width-cwidth-1, 		 height-1, &light);    if (!RConvertImage(scr->rcontext, img, pmap)) {	wwarning(_("error rendering image: %s"), RMessageForError(RErrorCode));    }    RDestroyImage(img);}