diff options
Diffstat (limited to 'apps/plugins/lib/grey_scroll.c')
-rw-r--r-- | apps/plugins/lib/grey_scroll.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/apps/plugins/lib/grey_scroll.c b/apps/plugins/lib/grey_scroll.c index 082b256d72..adecd3bc43 100644 --- a/apps/plugins/lib/grey_scroll.c +++ b/apps/plugins/lib/grey_scroll.c | |||
@@ -47,9 +47,9 @@ void grey_scroll_left(int count) | |||
47 | 47 | ||
48 | do | 48 | do |
49 | { | 49 | { |
50 | _grey_info.rb->memmove(data, data + count, length); | 50 | rb->memmove(data, data + count, length); |
51 | data += length; | 51 | data += length; |
52 | _grey_info.rb->memset(data, blank, count); | 52 | rb->memset(data, blank, count); |
53 | data += count; | 53 | data += count; |
54 | } | 54 | } |
55 | while (data < data_end); | 55 | while (data < data_end); |
@@ -72,8 +72,8 @@ void grey_scroll_right(int count) | |||
72 | 72 | ||
73 | do | 73 | do |
74 | { | 74 | { |
75 | _grey_info.rb->memmove(data + count, data, length); | 75 | rb->memmove(data + count, data, length); |
76 | _grey_info.rb->memset(data, blank, count); | 76 | rb->memset(data, blank, count); |
77 | data += _grey_info.width; | 77 | data += _grey_info.width; |
78 | } | 78 | } |
79 | while (data < data_end); | 79 | while (data < data_end); |
@@ -93,9 +93,9 @@ void grey_scroll_up(int count) | |||
93 | blank = (_grey_info.drawmode & DRMODE_INVERSEVID) ? | 93 | blank = (_grey_info.drawmode & DRMODE_INVERSEVID) ? |
94 | _grey_info.fg_brightness : _grey_info.bg_brightness; | 94 | _grey_info.fg_brightness : _grey_info.bg_brightness; |
95 | 95 | ||
96 | _grey_info.rb->memmove(_grey_info.buffer, _grey_info.buffer + shift, | 96 | rb->memmove(_grey_info.buffer, _grey_info.buffer + shift, |
97 | length); | 97 | length); |
98 | _grey_info.rb->memset(_grey_info.buffer + length, blank, shift); | 98 | rb->memset(_grey_info.buffer + length, blank, shift); |
99 | } | 99 | } |
100 | 100 | ||
101 | /* Scroll down */ | 101 | /* Scroll down */ |
@@ -112,9 +112,9 @@ void grey_scroll_down(int count) | |||
112 | blank = (_grey_info.drawmode & DRMODE_INVERSEVID) ? | 112 | blank = (_grey_info.drawmode & DRMODE_INVERSEVID) ? |
113 | _grey_info.fg_brightness : _grey_info.bg_brightness; | 113 | _grey_info.fg_brightness : _grey_info.bg_brightness; |
114 | 114 | ||
115 | _grey_info.rb->memmove(_grey_info.buffer + shift, _grey_info.buffer, | 115 | rb->memmove(_grey_info.buffer + shift, _grey_info.buffer, |
116 | length); | 116 | length); |
117 | _grey_info.rb->memset(_grey_info.buffer, blank, shift); | 117 | rb->memset(_grey_info.buffer, blank, shift); |
118 | } | 118 | } |
119 | 119 | ||
120 | /*** Unbuffered scrolling functions ***/ | 120 | /*** Unbuffered scrolling functions ***/ |
@@ -137,14 +137,14 @@ void grey_ub_scroll_left(int count) | |||
137 | _grey_info.bg_brightness]; | 137 | _grey_info.bg_brightness]; |
138 | do | 138 | do |
139 | { | 139 | { |
140 | _grey_info.rb->memmove(data, data + count, length); | 140 | rb->memmove(data, data + count, length); |
141 | data += length; | 141 | data += length; |
142 | _grey_info.rb->memset(data, blank, count); | 142 | rb->memset(data, blank, count); |
143 | data += count; | 143 | data += count; |
144 | } | 144 | } |
145 | while (data < data_end); | 145 | while (data < data_end); |
146 | #ifdef SIMULATOR | 146 | #ifdef SIMULATOR |
147 | _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, | 147 | rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, |
148 | _grey_info.width, _grey_info.height); | 148 | _grey_info.width, _grey_info.height); |
149 | #endif | 149 | #endif |
150 | } | 150 | } |
@@ -167,13 +167,13 @@ void grey_ub_scroll_right(int count) | |||
167 | _grey_info.bg_brightness]; | 167 | _grey_info.bg_brightness]; |
168 | do | 168 | do |
169 | { | 169 | { |
170 | _grey_info.rb->memmove(data + count, data, length); | 170 | rb->memmove(data + count, data, length); |
171 | _grey_info.rb->memset(data, blank, count); | 171 | rb->memset(data, blank, count); |
172 | data += _grey_info.width << _GREY_BSHIFT; | 172 | data += _grey_info.width << _GREY_BSHIFT; |
173 | } | 173 | } |
174 | while (data < data_end); | 174 | while (data < data_end); |
175 | #ifdef SIMULATOR | 175 | #ifdef SIMULATOR |
176 | _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, | 176 | rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, |
177 | _grey_info.width, _grey_info.height); | 177 | _grey_info.width, _grey_info.height); |
178 | #endif | 178 | #endif |
179 | } | 179 | } |
@@ -240,12 +240,12 @@ void grey_ub_scroll_up(int count) | |||
240 | int blen = _GREY_MULUQ(_grey_info.height - count, _grey_info.width); | 240 | int blen = _GREY_MULUQ(_grey_info.height - count, _grey_info.width); |
241 | 241 | ||
242 | src = dst + _GREY_MULUQ(count, _grey_info.width); | 242 | src = dst + _GREY_MULUQ(count, _grey_info.width); |
243 | _grey_info.rb->memmove(dst, src, blen); | 243 | rb->memmove(dst, src, blen); |
244 | dst += blen; | 244 | dst += blen; |
245 | } | 245 | } |
246 | _grey_info.rb->memset(dst, blank, end - dst); /* Fill remainder at once. */ | 246 | rb->memset(dst, blank, end - dst); /* Fill remainder at once. */ |
247 | #ifdef SIMULATOR | 247 | #ifdef SIMULATOR |
248 | _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, | 248 | rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, |
249 | _grey_info.width, _grey_info.height); | 249 | _grey_info.width, _grey_info.height); |
250 | #endif | 250 | #endif |
251 | } | 251 | } |
@@ -316,12 +316,12 @@ void grey_ub_scroll_down(int count) | |||
316 | int blen = _GREY_MULUQ(_grey_info.height - count, _grey_info.width); | 316 | int blen = _GREY_MULUQ(_grey_info.height - count, _grey_info.width); |
317 | 317 | ||
318 | dst -= blen; | 318 | dst -= blen; |
319 | _grey_info.rb->memmove(dst, start, blen); | 319 | rb->memmove(dst, start, blen); |
320 | } | 320 | } |
321 | _grey_info.rb->memset(start, blank, dst - start); | 321 | rb->memset(start, blank, dst - start); |
322 | /* Fill remainder at once. */ | 322 | /* Fill remainder at once. */ |
323 | #ifdef SIMULATOR | 323 | #ifdef SIMULATOR |
324 | _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, | 324 | rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, |
325 | _grey_info.width, _grey_info.height); | 325 | _grey_info.width, _grey_info.height); |
326 | #endif | 326 | #endif |
327 | } | 327 | } |