menu: correctly show the entry at the bottom of the display.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 19 Apr 2010 16:07:08 +0000 (16:07 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 19 Apr 2010 16:07:08 +0000 (16:07 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3467 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/gui/menu.c

index d897ae946825284ca40eb1ce4357374423565cda..c3fc3d2b916c365303f7326409731cbf8b5d13c3 100644 (file)
@@ -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