diff options
| author | Nils Wallménius <nils@rockbox.org> | 2009-09-04 16:04:02 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2009-09-04 16:04:02 +0000 |
| commit | 0cb68032275c7b15200a8766ed8c487689175b24 (patch) | |
| tree | 1dd1c64f331a9e1ff0117d0feca2720594926752 /firmware/scroll_engine.c | |
| parent | b5e39c15a55b3e46643bf3b46bb6c664b6cb50a4 (diff) | |
| download | rockbox-0cb68032275c7b15200a8766ed8c487689175b24.zip rockbox-0cb68032275c7b15200a8766ed8c487689175b24.tar.gz rockbox-0cb68032275c7b15200a8766ed8c487689175b24.tar.bz2 rockbox-0cb68032275c7b15200a8766ed8c487689175b24.tar.xz | |
Const police raid\!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22621 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/scroll_engine.c')
| -rw-r--r-- | firmware/scroll_engine.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index 8d84c79..b7e0601 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c @@ -85,7 +85,7 @@ void lcd_stop_scroll(void) } /* Stop scrolling line y in the specified viewport, or all lines if y < 0 */ -void lcd_scroll_stop_line(struct viewport* current_vp, int y) +void lcd_scroll_stop_line(const struct viewport* current_vp, int y) { int i = 0; @@ -98,7 +98,8 @@ void lcd_scroll_stop_line(struct viewport* current_vp, int y) the last item to position i */ if ((i + 1) != lcd_scroll_info.lines) { - lcd_scroll_info.scroll[i] = lcd_scroll_info.scroll[lcd_scroll_info.lines-1]; + lcd_scroll_info.scroll[i] = + lcd_scroll_info.scroll[lcd_scroll_info.lines-1]; } lcd_scroll_info.lines--; @@ -115,7 +116,7 @@ void lcd_scroll_stop_line(struct viewport* current_vp, int y) } /* Stop all scrolling lines in the specified viewport */ -void lcd_scroll_stop(struct viewport* vp) +void lcd_scroll_stop(const struct viewport* vp) { lcd_scroll_stop_line(vp, -1); } @@ -161,7 +162,7 @@ void lcd_remote_stop_scroll(void) } /* Stop scrolling line y in the specified viewport, or all lines if y < 0 */ -void lcd_remote_scroll_stop_line(struct viewport* current_vp, int y) +void lcd_remote_scroll_stop_line(const struct viewport* current_vp, int y) { int i = 0; @@ -174,7 +175,8 @@ void lcd_remote_scroll_stop_line(struct viewport* current_vp, int y) the last item to position i */ if ((i + 1) != lcd_remote_scroll_info.lines) { - lcd_remote_scroll_info.scroll[i] = lcd_remote_scroll_info.scroll[lcd_remote_scroll_info.lines-1]; + lcd_remote_scroll_info.scroll[i] = + lcd_remote_scroll_info.scroll[lcd_remote_scroll_info.lines-1]; } lcd_remote_scroll_info.lines--; @@ -191,7 +193,7 @@ void lcd_remote_scroll_stop_line(struct viewport* current_vp, int y) } /* Stop all scrolling lines in the specified viewport */ -void lcd_remote_scroll_stop(struct viewport* vp) +void lcd_remote_scroll_stop(const struct viewport* vp) { lcd_remote_scroll_stop_line(vp, -1); } @@ -346,3 +348,4 @@ void scroll_init(void) IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU)); } + |