summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/lib/gray_scroll.c8
1 files changed, 4 insertions, 4 deletions
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)
42 shift = MULU16(_gray_info.height, count); 42 shift = MULU16(_gray_info.height, count);
43 length = MULU16(_gray_info.height, _gray_info.width - count); 43 length = MULU16(_gray_info.height, _gray_info.width - count);
44 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 44 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
45 _gray_info.fg_brightness : _gray_info.bg_brightness; 45 _gray_info.fg_index : _gray_info.bg_index;
46 46
47 _gray_rb->memmove(_gray_info.cur_buffer, _gray_info.cur_buffer + shift, length); 47 _gray_rb->memmove(_gray_info.cur_buffer, _gray_info.cur_buffer + shift, length);
48 _gray_rb->memset(_gray_info.cur_buffer + length, blank, shift); 48 _gray_rb->memset(_gray_info.cur_buffer + length, blank, shift);
@@ -60,7 +60,7 @@ void gray_scroll_right(int count)
60 shift = MULU16(_gray_info.height, count); 60 shift = MULU16(_gray_info.height, count);
61 length = MULU16(_gray_info.height, _gray_info.width - count); 61 length = MULU16(_gray_info.height, _gray_info.width - count);
62 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 62 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
63 _gray_info.fg_brightness : _gray_info.bg_brightness; 63 _gray_info.fg_index : _gray_info.bg_index;
64 64
65 _gray_rb->memmove(_gray_info.cur_buffer + shift, _gray_info.cur_buffer, length); 65 _gray_rb->memmove(_gray_info.cur_buffer + shift, _gray_info.cur_buffer, length);
66 _gray_rb->memset(_gray_info.cur_buffer, blank, shift); 66 _gray_rb->memset(_gray_info.cur_buffer, blank, shift);
@@ -79,7 +79,7 @@ void gray_scroll_up(int count)
79 data_end = data + MULU16(_gray_info.width, _gray_info.height); 79 data_end = data + MULU16(_gray_info.width, _gray_info.height);
80 length = _gray_info.height - count; 80 length = _gray_info.height - count;
81 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 81 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
82 _gray_info.fg_brightness : _gray_info.bg_brightness; 82 _gray_info.fg_index : _gray_info.bg_index;
83 83
84 do 84 do
85 { 85 {
@@ -103,7 +103,7 @@ void gray_scroll_down(int count)
103 data_end = data + MULU16(_gray_info.width, _gray_info.height); 103 data_end = data + MULU16(_gray_info.width, _gray_info.height);
104 length = _gray_info.height - count; 104 length = _gray_info.height - count;
105 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ? 105 blank = (_gray_info.drawmode & DRMODE_INVERSEVID) ?
106 _gray_info.fg_brightness : _gray_info.bg_brightness; 106 _gray_info.fg_index : _gray_info.bg_index;
107 107
108 do 108 do
109 { 109 {