From 7391de5e967263d059602d539ad10902388c7e58 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 14 Jul 2004 18:30:37 +0000 Subject: fixed menu draw bug while doing keyboard navigation --- src/FbTk/Menu.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 9109913..7b18520 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.70 2004/07/05 09:40:08 fluxgen Exp $ +// $Id: Menu.cc,v 1.71 2004/07/14 18:30:37 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -283,7 +283,7 @@ void Menu::lower() { void Menu::nextItem() { int old_which_press = which_press; - + m_active_index = -1; if (validIndex(old_which_press) && menuitems[old_which_press] != 0) { if (menuitems[old_which_press]->submenu()) { @@ -320,7 +320,7 @@ void Menu::nextItem() { void Menu::prevItem() { int old_which_press = which_press; - + m_active_index = -1; if (validIndex(old_which_press)) { if (menuitems[old_which_press]->submenu()) { // we need to do this explicitly on the menu.window @@ -980,8 +980,8 @@ int Menu::drawItem(unsigned int index, bool clear, bool render_trans, if (clear) { - menu.frame.clearArea(item_x, item_y, - menu.item_w, theme().itemHeight(), False); + frameWindow().clearArea(item_x, item_y, + menu.item_w, theme().itemHeight(), False); } -- cgit v0.11.2