--- rxvt-unicode/src/defaultfont.C 2004/02/20 22:27:23 1.20 +++ rxvt-unicode/src/defaultfont.C 2004/02/21 20:33:40 1.21 @@ -878,10 +878,6 @@ XftUnlockFace (f); - d = XftDrawCreate (DISPLAY, DRAWABLE, r->display->visual, r->display->cmap); - if (!d) - return false; - return true; } @@ -896,6 +892,8 @@ const text_t *text, int len, int fg, int bg) { + d = XftDrawCreate (DISPLAY, DRAWABLE, r->display->visual, r->display->cmap); + if (bg >= 0 && bg != Color_bg) XftDrawRect (d, &r->PixColors[bg].c, x, y, r->TermWin.fwidth * len, r->TermWin.fheight); else