X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.c;h=556985f645a3ed7cf6c832f88f4664c2e0395122;hb=eadb6634eaa197dbc02331d75285a4a47f58d52a;hp=6c3f8d0d8fef038c8980a521585c46efc65e2f30;hpb=e6fc1ae3fca5a01138a356fd3aecebe8a5522a68;p=bertos.git diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index 6c3f8d0d..556985f6 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -39,8 +39,9 @@ #include "menu.h" -#include "cfg/cfg_gfx.h" +#include "cfg/cfg_menu.h" #include "cfg/cfg_arch.h" + #include #include @@ -56,10 +57,6 @@ #include /* strncpy_P() */ #endif -#if CONFIG_MENU_SMOOTH -#include -#endif - #if (CONFIG_MENU_TIMEOUT != 0) #include #endif @@ -195,13 +192,11 @@ static void menu_layout( ypos = bm->cr.ymin; -#if 1 if (redraw) { /* Clear screen */ text_clear(menu->bitmap); } -#endif if (title) { @@ -293,7 +288,7 @@ static void menu_layout( /* Clear rest of area */ gfx_rectClear(bm, bm->cr.xmin, ypos, bm->cr.xmax, bm->cr.ymax); - lcd_blitBitmap(bm); + menu->lcd_blitBitmap(bm); } /* Restore old cliprect */