X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.c;h=556985f645a3ed7cf6c832f88f4664c2e0395122;hb=eadb6634eaa197dbc02331d75285a4a47f58d52a;hp=dabc9210e25a403c0452f645300633721da3177b;hpb=5ad7e5ee1a5a243c05ee9a5ab690e48006caad86;p=bertos.git diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index dabc9210..556985f6 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -39,9 +39,9 @@ #include "menu.h" -#include "cfg/cfg_gfx.h" #include "cfg/cfg_menu.h" #include "cfg/cfg_arch.h" + #include #include @@ -57,19 +57,6 @@ #include /* strncpy_P() */ #endif -#if CONFIG_MENU_SMOOTH -#include -/** - * With this you can choose, at compile time, which backend to use. - * - * $WIZ$ menu_backend_lcd = "LCD_RIT128X96_DRV", "LCD_32122A_DRV" - */ -#define LCD_RIT128X96_DRV 0 ///< -#define LCD_32122A_DRV 1 ///< - - -#endif - #if (CONFIG_MENU_TIMEOUT != 0) #include #endif @@ -205,13 +192,11 @@ static void menu_layout( ypos = bm->cr.ymin; -#if 1 if (redraw) { /* Clear screen */ text_clear(menu->bitmap); } -#endif if (title) { @@ -303,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 */