From ccf6cfadf7917be62eda6b5613feca59ddc66a0f Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Thu, 17 Oct 2002 00:52:03 +0000 Subject: Fix XFT redraw of text. Still needs slight work for the shadow in Basemenu --- src/Basemenu.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Basemenu.cc') diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 322576c5..25a941cb 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -447,6 +447,7 @@ void Basemenu::redrawTitle(void) { break; } + XClearWindow(display, menu.title); style->t_font->drawString(menu.title, dx, menu.bevel_w, style->t_text, text); } @@ -610,6 +611,10 @@ void Basemenu::drawItem(int index, bool highlight, bool clear, dooppsel = False; } + if (dotext) + XClearArea(display, menu.frame, text_x, text_y, text_w, text_h, + False); + if (dohilite && highlight && (menu.hilite_pixmap != ParentRelative)) { if (menu.hilite_pixmap) XCopyArea(display, menu.hilite_pixmap, menu.frame, -- cgit v1.2.3