1
0
Fork 0
forked from len0rd/rockbox

Repair bufferend scrolling background.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10434 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-08-03 15:13:57 +00:00
parent 75f3fd05b9
commit 89c81ce1fb

View file

@ -42,7 +42,7 @@ void gray_scroll_left(int count)
shift = MULU16(_gray_info.height, count); shift = MULU16(_gray_info.height, count);
length = MULU16(_gray_info.height, _gray_info.width - count); length = MULU16(_gray_info.height, _gray_info.width - count);
blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 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->memmove(_gray_info.cur_buffer, _gray_info.cur_buffer + shift, length);
_gray_rb->memset(_gray_info.cur_buffer + length, blank, shift); _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); shift = MULU16(_gray_info.height, count);
length = MULU16(_gray_info.height, _gray_info.width - count); length = MULU16(_gray_info.height, _gray_info.width - count);
blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 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->memmove(_gray_info.cur_buffer + shift, _gray_info.cur_buffer, length);
_gray_rb->memset(_gray_info.cur_buffer, blank, shift); _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); data_end = data + MULU16(_gray_info.width, _gray_info.height);
length = _gray_info.height - count; length = _gray_info.height - count;
blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
_gray_info.fg_brightness : _gray_info.bg_brightness; _gray_info.fg_index : _gray_info.bg_index;
do do
{ {
@ -103,7 +103,7 @@ void gray_scroll_down(int count)
data_end = data + MULU16(_gray_info.width, _gray_info.height); data_end = data + MULU16(_gray_info.width, _gray_info.height);
length = _gray_info.height - count; length = _gray_info.height - count;
blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
_gray_info.fg_brightness : _gray_info.bg_brightness; _gray_info.fg_index : _gray_info.bg_index;
do do
{ {