hashtable: do not wrap text to avoid truncated description in the wizard.
[bertos.git] / bertos / gui / menu.c
index d897ae946825284ca40eb1ce4357374423565cda..86e8f17dd4453cfc4bd277f48b8c9190c6042454 100644 (file)
@@ -295,7 +295,7 @@ static void menu_layout(
                /* Clear rest of area */
                gfx_rectClear(bm, bm->cr.xmin, ypos, bm->cr.xmax, bm->cr.ymax);
 
-               lcd_blitBitmap(&lcd_bitmap);
+               lcd_blitBitmap(bm);
        }
 
        /* Restore old cliprect */
@@ -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