Option GRAPHICS=YES/NO introduced for checkboxes and sliders (today it uses 144bytes)
This commit is contained in:
+4
-4
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user