From: arighi Date: Mon, 19 Apr 2010 16:07:08 +0000 (+0000) Subject: menu: correctly show the entry at the bottom of the display. X-Git-Tag: 2.5.0~441 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a17c402d91c915de9e9bedd89e6fdf5c8b04cb63;p=bertos.git menu: correctly show the entry at the bottom of the display. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3467 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index d897ae94..c3fc3d2b 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -442,7 +442,7 @@ iptr_t menu_handle(const struct Menu *menu) items_per_page = - (menu->bitmap->height / menu->bitmap->font->height) + (menu->bitmap->height / menu->bitmap->font->height - 1) #if CONFIG_MENU_MENUBAR - 1 /* menu bar labels */ #endif