diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-08-03 15:13:57 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-03 15:13:57 +0000 |
| commit | 89c81ce1fb98842ace323be25aa2d99dda49e555 (patch) | |
| tree | cc36db6544ca4d5d67d1a5c42591b77ea9551efb /apps/plugins | |
| parent | 75f3fd05b9f7c250fa2276b712c8a01f37715281 (diff) | |
| download | rockbox-89c81ce1fb98842ace323be25aa2d99dda49e555.zip rockbox-89c81ce1fb98842ace323be25aa2d99dda49e555.tar.gz rockbox-89c81ce1fb98842ace323be25aa2d99dda49e555.tar.bz2 rockbox-89c81ce1fb98842ace323be25aa2d99dda49e555.tar.xz | |
Repair bufferend scrolling background.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10434 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/lib/gray_scroll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_scroll.c b/apps/plugins/lib/gray_scroll.c index c52ec6d..3cdb7d5 100644 --- a/apps/plugins/lib/gray_scroll.c +++ b/apps/plugins/lib/gray_scroll.c @@ -42,7 +42,7 @@ void gray_scroll_left(int count) shift = MULU16(_gray_info.height, count); length = MULU16(_gray_info.height, _gray_info.width - count); blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? - _gray_info.fg_brightness : _gray_info.bg_brightness; + _gray_info.fg_index : _gray_info.bg_index; _gray_rb->memmove(_gray_info.cur_buffer, _gray_info.cur_buffer + shift, length); _gray_rb->memset(_gray_info.cur_buffer + length, blank, shift); @@ -60,7 +60,7 @@ void gray_scroll_right(int count) shift = MULU16(_gray_info.height, count); length = MULU16(_gray_info.height, _gray_info.width - count); blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? - _gray_info.fg_brightness : _gray_info.bg_brightness; + _gray_info.fg_index : _gray_info.bg_index; _gray_rb->memmove(_gray_info.cur_buffer + shift, _gray_info.cur_buffer, length); _gray_rb->memset(_gray_info.cur_buffer, blank, shift); @@ -79,7 +79,7 @@ void gray_scroll_up(int count) data_end = data + MULU16(_gray_info.width, _gray_info.height); length = _gray_info.height - count; blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? - _gray_info.fg_brightness : _gray_info.bg_brightness; + _gray_info.fg_index : _gray_info.bg_index; do { @@ -103,7 +103,7 @@ void gray_scroll_down(int count) data_end = data + MULU16(_gray_info.width, _gray_info.height); length = _gray_info.height - count; blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? - _gray_info.fg_brightness : _gray_info.bg_brightness; + _gray_info.fg_index : _gray_info.bg_index; do { |