From 89c81ce1fb98842ace323be25aa2d99dda49e555 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 3 Aug 2006 15:13:57 +0000 Subject: Repair bufferend scrolling background. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10434 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/gray_scroll.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/plugins/lib/gray_scroll.c b/apps/plugins/lib/gray_scroll.c index c52ec6d752..3cdb7d5afe 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 { -- cgit v1.2.3