summaryrefslogtreecommitdiff
path: root/src/Basemenu.cc
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2002-10-17 00:52:03 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2002-10-17 00:52:03 +0000
commitccf6cfadf7917be62eda6b5613feca59ddc66a0f (patch)
tree0b45b7f0f2cd2a44a5f4ae2ea07476a15a9cdf5a /src/Basemenu.cc
parent402e229e76dfd8b4cda8b7cf1fccaec5acf7570c (diff)
Fix XFT redraw of text. Still needs slight work for the shadow in Basemenu
Diffstat (limited to 'src/Basemenu.cc')
-rw-r--r--src/Basemenu.cc5
1 files changed, 5 insertions, 0 deletions
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,