From fb13bea1bc567afa5d2ae588b9ed98fe7c91a4fd Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Oct 2006 12:50:31 +0000 Subject: [PATCH] the exg bug --- Changes | 4 +++- src/rxvtfont.C | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index b6783b77..d438670f 100644 --- a/Changes +++ b/Changes @@ -20,8 +20,10 @@ WISH: http://www120.pair.com/mccarthy/nextstep/intro.htmld/Workspace.html is the WISH: kick out xpm.C, replace by pixbuf DUMB: support tex fonts -TODO: (exg) rxvt -fn -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1 U+39b+U+30a wipes out 39b 8.0 + - combining characters cleared the area instead of creating an overlay, + thus losing the ability to draw combining characters properly in most + circumstances (reported by exg). - specified fonts were incorrectly morphed to bold/italic according to the basefont, even if explicitly specified (tracked down by tpope). - fixed urxvt::strwidth to calculate width in the same way as screen.C. diff --git a/src/rxvtfont.C b/src/rxvtfont.C index 40484fd5..fd133d3f 100644 --- a/src/rxvtfont.C +++ b/src/rxvtfont.C @@ -234,9 +234,9 @@ rxvt_font::clear_rect (rxvt_drawable &d, int x, int y, int w, int h, int color) dTermDisplay; dTermGC; - if (color < 0 || color == Color_bg) + if (color == Color_bg) XClearArea (disp, d, x, y, w, h, false); - else + else if (color >= 0) { #if XFT XftDrawRect (d, &term->pix_colors[color].c, x, y, w, h); -- 2.34.1