From e41bc330b402508541ec812dfe797cceae255f7f Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 29 Aug 2004 14:37:52 +0000 Subject: fix bug with >1 column menus --- ChangeLog | 2 ++ src/FbTk/Menu.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa6d44a..81b70ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.10: *04/08/29: + * Fix rendering bug when revisiting >1 column menus (Simon) + FbTk/Menu.cc * Fix crash when extramenus not attached to windowmenu (Simon) - and add checking that windowmenu file exists and sorta parses Window.cc FbTk/Menu.hh MenuCreator.hh/cc diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 5fe8e36..b4ae45a 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.75 2004/08/29 08:33:13 rathnor Exp $ +// $Id: Menu.cc,v 1.76 2004/08/29 14:37:52 rathnor Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -947,7 +947,7 @@ int Menu::drawItem(unsigned int index, bool clear, bool render_trans, if (render_trans) { renderTransp(item_x, item_y, - width(), theme().itemHeight()); + menu.item_w, theme().itemHeight()); } //!! //!! TODO: Move this out to MenuItem -- cgit v0.11.2