X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.c;h=146b3c1ffd0f6741d8a04bcb234db577aa71a8fc;hb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;hp=f02324ecf2c2b02e4738cb500dcc5f8b18a73fdd;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index f02324ec..146b3c1f 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -27,72 +27,30 @@ * the GNU General Public License. * * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/) - * Copyright 2000 Bernardo Innocenti + * Copyright 2000 Bernie Innocenti * * --> * * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Stefano Fedrigo * * \brief General pourpose menu handling functions */ -/*#* - *#* $Log$ - *#* Revision 1.8 2006/09/13 13:58:32 bernie - *#* Add RenderHook support. - *#* - *#* Revision 1.7 2006/08/01 12:22:46 bernie - *#* Mention DevLib license. - *#* - *#* Revision 1.6 2006/07/19 12:56:27 bernie - *#* Convert to new Doxygen style. - *#* - *#* Revision 1.5 2006/06/03 13:58:01 bernie - *#* Fix recursive timeout and add exit status information. - *#* - *#* Revision 1.4 2006/06/02 12:26:18 bernie - *#* Draw graphical checkmarks. - *#* - *#* Revision 1.3 2006/05/28 15:03:31 bernie - *#* Avoid unnecessary rendering. - *#* - *#* Revision 1.2 2006/05/25 23:34:38 bernie - *#* Implement menu timeouts. - *#* - *#* Revision 1.1 2006/05/15 07:20:54 bernie - *#* Move menu to gui/. - *#* - *#* Revision 1.7 2006/04/27 05:39:24 bernie - *#* Enhance text rendering to arbitrary x,y coords. - *#* - *#* Revision 1.6 2006/04/11 00:07:32 bernie - *#* Implemenent MF_SAVESEL flag. - *#* - *#* Revision 1.5 2006/03/22 09:49:51 bernie - *#* Simplifications from project_grl. - *#* - *#* Revision 1.4 2006/03/20 17:48:35 bernie - *#* Implement support for ROM menus. - *#* - *#* Revision 1.3 2006/02/20 14:34:32 bernie - *#* Include appconfig.h before using its definitions. - *#* - *#* Revision 1.2 2006/02/15 09:10:51 bernie - *#* Make title bold; Fix height when we have no menubar. - *#*/ - #include "menu.h" +#include "cfg/cfg_gfx.h" +#include +#include + #include #include #include + #include -#include -#include -#include + #include /* strcpy() */ #if CPU_HARVARD @@ -210,7 +168,9 @@ static void menu_defaultRenderHook(struct Bitmap *bm, int ypos, bool selected, c } } -#if CPU_HARVARD +#warning FIXME:REVISE this code! +#if 0 +//#if CPU_HARVARD ((item->flags & MIF_RAMLABEL) ? text_xyprintf : text_xyprintf_P) #else text_xyprintf @@ -238,7 +198,7 @@ static void menu_layout( ypos = bm->cr.ymin; -#if 0 +#if 1 if (redraw) { /* Clear screen */