X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.c;h=86e8f17dd4453cfc4bd277f48b8c9190c6042454;hb=4d0b5bc3fde957efeadd1b4fb4c46bfee9e51ce3;hp=d897ae946825284ca40eb1ce4357374423565cda;hpb=0569ed9a41231afb989531bfb7c668de5c9d4fda;p=bertos.git diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index d897ae94..86e8f17d 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -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