summaryrefslogtreecommitdiffstats
path: root/firmware/scroll_engine.c
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-30 21:12:33 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-30 21:12:33 +0000
commit7b7b9310e70920ce399a1becf87cf15636431c0f (patch)
tree12469d222778c9c8c1b6ec0c49927e7d46d61303 /firmware/scroll_engine.c
parent473b56bd30af40ee5c73ab1659af7555d54441e4 (diff)
downloadrockbox-7b7b9310e70920ce399a1becf87cf15636431c0f.tar.gz
rockbox-7b7b9310e70920ce399a1becf87cf15636431c0f.tar.bz2
rockbox-7b7b9310e70920ce399a1becf87cf15636431c0f.zip
Save a few bytes in the line selector style handling code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14927 a1c6a512-1295-4272-9138-f99709370657
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)