menu: correctly show the entry at the bottom of the display.
[bertos.git] / 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