projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up. Remove module check where is unneeded.
[bertos.git]
/
bertos
/
gui
/
menu.c
diff --git
a/bertos/gui/menu.c
b/bertos/gui/menu.c
index 6c3f8d0d8fef038c8980a521585c46efc65e2f30..556985f645a3ed7cf6c832f88f4664c2e0395122 100644
(file)
--- a/
bertos/gui/menu.c
+++ b/
bertos/gui/menu.c
@@
-39,8
+39,9
@@
#include "menu.h"
#include "menu.h"
-#include "cfg/cfg_
gfx
.h"
+#include "cfg/cfg_
menu
.h"
#include "cfg/cfg_arch.h"
#include "cfg/cfg_arch.h"
+
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>
@@
-56,10
+57,6
@@
#include <avr/pgmspace.h> /* strncpy_P() */
#endif
#include <avr/pgmspace.h> /* strncpy_P() */
#endif
-#if CONFIG_MENU_SMOOTH
-#include <drv/lcd_gfx.h>
-#endif
-
#if (CONFIG_MENU_TIMEOUT != 0)
#include <drv/timer.h>
#endif
#if (CONFIG_MENU_TIMEOUT != 0)
#include <drv/timer.h>
#endif
@@
-195,13
+192,11
@@
static void menu_layout(
ypos = bm->cr.ymin;
ypos = bm->cr.ymin;
-#if 1
if (redraw)
{
/* Clear screen */
text_clear(menu->bitmap);
}
if (redraw)
{
/* Clear screen */
text_clear(menu->bitmap);
}
-#endif
if (title)
{
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);
/* 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 */
}
/* Restore old cliprect */