--- rxvt-unicode/src/defaultfont.C 2004/02/20 22:27:23 1.20 +++ rxvt-unicode/src/defaultfont.C 2004/02/21 22:14:00 1.22 @@ -1,7 +1,7 @@ /*--------------------------------*-C-*---------------------------------*; * File: defaultfont.C *----------------------------------------------------------------------* - * Copyright (c) 2003 Marc Lehmann rxvt@plan9.de> + * Copyright (c) 2003-2004 Marc Lehmann * - original version. * * This program is free software; you can redistribute it and/or modify @@ -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