From d66b3c0f61fad357fa4a30b1ebf5ddb070099f7e Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Mon, 15 Oct 2007 20:42:51 +0000 Subject: Remove the "invert scroll" code since it's not used anywhere anymore (and it was broken on color targets with gradients anyway). Closes FS #7875. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15125 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/lcd-remote.h | 1 - firmware/export/lcd.h | 1 - firmware/scroll_engine.c | 30 ------------------------------ 3 files changed, 32 deletions(-) (limited to 'firmware') diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index 44f809a838..3be23747ea 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h @@ -166,7 +166,6 @@ extern void lcd_remote_bitmap(const fb_remote_data *src, int x, int y, int width, int height); extern void lcd_remote_putsxy(int x, int y, const unsigned char *str); -extern void lcd_remote_invertscroll(int x, int y); extern void lcd_remote_bidir_scroll(int threshold); extern void lcd_remote_scroll_step(int pixels); diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index b64e506981..eedfc651c7 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -355,7 +355,6 @@ extern void lcd_bitmap_part(const fb_data *src, int src_x, int src_y, extern void lcd_bitmap(const fb_data *src, int x, int y, int width, int height); -extern void lcd_invertscroll(int x, int y); extern void lcd_scroll_step(int pixels); #if LCD_DEPTH > 1 diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index cb8585cbba..63ca8883de 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c @@ -88,21 +88,6 @@ void lcd_scroll_speed(int speed) } #if defined(HAVE_LCD_BITMAP) -/* Reverse the invert setting of the scrolling line (if any) at given char - position. Setting will go into affect next time line scrolls. */ -void lcd_invertscroll(int x, int y) -{ - struct scrollinfo *s; - - (void)x; - - if((unsigned)y>=LCD_SCROLLABLE_LINES) return; - - s = &lcd_scroll_info.scroll[y]; - s->style = !s->style; /* FIXME: now that the setting isn't bool this seems - flawed. */ -} - void lcd_scroll_step(int step) { lcd_scroll_info.step = step; @@ -132,21 +117,6 @@ void lcd_jump_scroll_delay(int ms) #endif #ifdef HAVE_REMOTE_LCD -/* Reverse the invert setting of the scrolling line (if any) at given char - position. Setting will go into affect next time line scrolls. */ -void lcd_remote_invertscroll(int x, int y) -{ - struct scrollinfo *s; - - (void)x; - - if((unsigned)y>=LCD_REMOTE_SCROLLABLE_LINES) return; - - s = &lcd_remote_scroll_info.scroll[y]; - s->style = !s->style; /* FIXME: now that the setting isn't bool this seems - flawed. */ -} - void lcd_remote_stop_scroll(void) { lcd_remote_scroll_info.lines = 0; -- cgit v1.2.3