diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-06 00:28:27 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-06 00:28:27 +0000 |
| commit | 5282d92b627041047b2603b0c2d013c221f4dd56 (patch) | |
| tree | 1e66d0087599597fc389c1aa72730cab698340cb /src/Basemenu.cc | |
| parent | 6716bd33235b6fda4aeea75aea7c446e9f27fe40 (diff) | |
was ending up using the wrong cache items. now i find and release it every time a string is drawn
Diffstat (limited to 'src/Basemenu.cc')
| -rw-r--r-- | src/Basemenu.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 5b4acdf0..b6b242b6 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -536,6 +536,7 @@ bool Basemenu::hasSubmenu(int index) { void Basemenu::drawItem(int index, bool highlight, bool clear, int x, int y, unsigned int w, unsigned int h) { + fprintf(stderr, "DRAW ITEM\n"); BasemenuItem *item = find(index); if (! item) return; @@ -628,6 +629,7 @@ void Basemenu::drawItem(int index, bool highlight, bool clear, } if (dotext && text) { + fprintf(stderr, "FONT: %s\nTEXT: %s\n", style->f_font->name().c_str(), text); style->f_font->drawString(menu.frame, text_x, text_y, (highlight ? style->h_text : (item->isEnabled() ? style->f_text : |
