summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 45608b9f36..e8a4923eee 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -245,21 +245,21 @@ void vid_update(int scanline)
245 scanline-=16; 245 scanline-=16;
246 else if (fb.mode==2) 246 else if (fb.mode==2)
247 scanline-=8; 247 scanline-=8;
248#ifdef GRAYSCALE 248#if LCD_DEPTH == 2
249 scanline_remapped = scanline / 4; 249 scanline_remapped = scanline / 4;
250#else 250#else
251 scanline_remapped = scanline / 8; 251 scanline_remapped = scanline / 8;
252#endif 252#endif
253 frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; 253 frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
254 while (cnt < 160) { 254 while (cnt < 160) {
255#ifdef GRAYSCALE 255#if LCD_DEPTH == 2
256 *(frameb++) = (scan.buf[0][cnt]&0x3) | 256 *(frameb++) = (scan.buf[0][cnt]&0x3) |
257 ((scan.buf[1][cnt]&0x3)<<2) | 257 ((scan.buf[1][cnt]&0x3)<<2) |
258 ((scan.buf[2][cnt]&0x3)<<4) | 258 ((scan.buf[2][cnt]&0x3)<<4) |
259 ((scan.buf[3][cnt]&0x3)<<6); 259 ((scan.buf[3][cnt]&0x3)<<6);
260 cnt++; 260 cnt++;
261 } 261 }
262 rb->lcd_update_rect(0, scanline & ~3, LCD_WIDTH, 4); //8); 262 rb->lcd_update_rect(0, scanline & ~3, LCD_WIDTH, 4);
263#else 263#else
264 register unsigned scrbyte = 0; 264 register unsigned scrbyte = 0;
265 if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01; 265 if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01;
@@ -274,7 +274,7 @@ void vid_update(int scanline)
274 cnt++; 274 cnt++;
275 } 275 }
276 rb->lcd_update_rect(0, scanline & ~7, LCD_WIDTH, 8); 276 rb->lcd_update_rect(0, scanline & ~7, LCD_WIDTH, 8);
277#endif /* GRAYSCALE */ 277#endif /* LCD_DEPTH */
278#endif /* LCD_HEIGHT */ 278#endif /* LCD_HEIGHT */
279} 279}
280 280