X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.c;h=556985f645a3ed7cf6c832f88f4664c2e0395122;hb=cf483f342779f154657abe668956d1c57db395ac;hp=c3fc3d2b916c365303f7326409731cbf8b5d13c3;hpb=a17c402d91c915de9e9bedd89e6fdf5c8b04cb63;p=bertos.git diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index c3fc3d2b..556985f6 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -26,13 +26,11 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/) + * Copyright 2003, 2004, 2006, 2010 Develer S.r.l. (http://www.develer.com/) * Copyright 2000 Bernie Innocenti * * --> * - * \version $Id$ - * * \author Bernie Innocenti * \author Stefano Fedrigo * @@ -41,8 +39,9 @@ #include "menu.h" -#include "cfg/cfg_gfx.h" +#include "cfg/cfg_menu.h" #include "cfg/cfg_arch.h" + #include #include @@ -58,10 +57,6 @@ #include /* strncpy_P() */ #endif -#if CONFIG_MENU_SMOOTH -#include -#endif - #if (CONFIG_MENU_TIMEOUT != 0) #include #endif @@ -197,13 +192,11 @@ static void menu_layout( ypos = bm->cr.ymin; -#if 1 if (redraw) { /* Clear screen */ text_clear(menu->bitmap); } -#endif if (title) { @@ -295,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(&lcd_bitmap); + menu->lcd_blitBitmap(bm); } /* Restore old cliprect */