From d3a03b679f196be076043d475b9512338fd6c8bb Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sun, 22 Jan 2006 04:24:26 +0000 Subject: Horizontal screen scrolling part 3 (by Shachar Liberman) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8414 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-h100-remote.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'firmware/drivers/lcd-h100-remote.c') diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index a28cd2f4e5..3be907a574 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -1138,7 +1138,7 @@ void lcd_remote_putsxy(int x, int y, const unsigned char *str) /* put a string at a given char position */ void lcd_remote_puts(int x, int y, const unsigned char *str) { - lcd_remote_puts_style(x, y, str, STYLE_DEFAULT); + lcd_remote_puts_style_offset(x, y, str, STYLE_DEFAULT, 0); } void lcd_remote_puts_style(int x, int y, const unsigned char *str, int style) @@ -1151,7 +1151,8 @@ void lcd_remote_puts_offset(int x, int y, const unsigned char *str, int offset) lcd_remote_puts_style_offset(x, y, str, STYLE_DEFAULT, offset); } -/* put a string at a given char position at a given style and with a given offset */ +/* put a string at a given char position, style, and pixel position, + * skipping first offset pixel columns */ void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, int style, int offset) { int xpos,ypos,w,h; @@ -1223,16 +1224,16 @@ void lcd_remote_puts_scroll(int x, int y, const unsigned char *string) void lcd_remote_puts_scroll_style(int x, int y, const unsigned char *string, int style) { - lcd_remote_puts_scroll_style_offset(x, y, string, style, 0); + lcd_remote_puts_scroll_style_offset(x, y, string, style, 0); } - + void lcd_remote_puts_scroll_offset(int x, int y, const unsigned char *string, int offset) { lcd_remote_puts_scroll_style_offset(x, y, string, STYLE_DEFAULT, offset); -} - +} + void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *string, - int style, int offset) + int style, int offset) { struct scrollinfo* s; int w, h; @@ -1289,7 +1290,6 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri scrolling_lines &= ~(1<