Option GRAPHICS=YES/NO introduced for checkboxes and sliders (today it uses 144bytes)

This commit is contained in:
bsongis
2012-05-22 07:33:35 +00:00
parent ecf7831af5
commit dceec43442
11 changed files with 63 additions and 20 deletions
+4 -4
View File
@@ -43,10 +43,7 @@ int16_t g_chans512[NUM_CHNOUT]; // TODO not here!
void menu_lcd_onoff(uint8_t x,uint8_t y, uint8_t value, uint8_t attr)
{
#if 0
/* ON / OFF version */
lcd_putsiAtt(x, y, STR_OFFON, value, attr ? INVERS:0) ;
#else
#if defined(GRAPHICS)
if (value) {
lcd_putc(x+1, y, '#');
}
@@ -54,6 +51,9 @@ void menu_lcd_onoff(uint8_t x,uint8_t y, uint8_t value, uint8_t attr)
lcd_filled_rect(x, y, 7, 7);
else
lcd_square(x, y, 7);
#else
/* ON / OFF version */
lcd_putsiAtt(x, y, STR_OFFON, value, attr ? INVERS:0) ;
#endif
}