summaryrefslogtreecommitdiffstats
path: root/firmware/scroll_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/scroll_engine.c')
-rw-r--r--firmware/scroll_engine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c
index d4a2e174cc..e21cb8b3ae 100644
--- a/firmware/scroll_engine.c
+++ b/firmware/scroll_engine.c
@@ -99,7 +99,12 @@ void lcd_invertscroll(int x, int y)
if((unsigned)y>=LCD_SCROLLABLE_LINES) return;
s = &lcd_scroll_info.scroll[y];
+#ifdef HAVE_LCD_COLOR
+ s->style = !s->style; /* FIXME: now that the setting isn't bool this seems
+ flawed. */
+#else
s->invert = !s->invert;
+#endif
}
void lcd_scroll_step(int step)
@@ -142,7 +147,12 @@ void lcd_remote_invertscroll(int x, int y)
if((unsigned)y>=LCD_REMOTE_SCROLLABLE_LINES) return;
s = &lcd_remote_scroll_info.scroll[y];
+#ifdef HAVE_LCD_COLOR
+ s->style = !s->style; /* FIXME: now that the setting isn't bool this seems
+ flawed. */
+#else
s->invert = !s->invert;
+#endif
}
void lcd_remote_stop_scroll(void)