diff options
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 8 | ||||
-rw-r--r-- | apps/plugins/rockboy/sys_rockbox.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c index 143b8fdfa8..387a88c3df 100644 --- a/apps/plugins/rockboy/lcd.c +++ b/apps/plugins/rockboy/lcd.c | |||
@@ -742,9 +742,9 @@ static void spr_scan(void) | |||
742 | void lcd_begin(void) | 742 | void lcd_begin(void) |
743 | { | 743 | { |
744 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) | 744 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) |
745 | vdest=(unsigned char*)rb->lcd_framebuffer; | 745 | vdest=(unsigned char*)*rb->lcd_framebuffer; |
746 | #else | 746 | #else |
747 | vdest=rb->lcd_framebuffer; | 747 | vdest=*rb->lcd_framebuffer; |
748 | #endif | 748 | #endif |
749 | 749 | ||
750 | #ifdef HAVE_LCD_COLOR | 750 | #ifdef HAVE_LCD_COLOR |
@@ -975,9 +975,9 @@ void lcd_refreshline(void) | |||
975 | 975 | ||
976 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) | 976 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) |
977 | if(options.scaling==3) { | 977 | if(options.scaling==3) { |
978 | rb->lcd_blit_pal256((unsigned char*)rb->lcd_framebuffer,(LCD_WIDTH-160)/2, (LCD_HEIGHT-144)/2, (LCD_WIDTH-160)/2, (LCD_HEIGHT-144)/2, 160, 144); | 978 | rb->lcd_blit_pal256((unsigned char*)*rb->lcd_framebuffer,(LCD_WIDTH-160)/2, (LCD_HEIGHT-144)/2, (LCD_WIDTH-160)/2, (LCD_HEIGHT-144)/2, 160, 144); |
979 | } else { | 979 | } else { |
980 | rb->lcd_blit_pal256((unsigned char*)rb->lcd_framebuffer,0,0,0,0,LCD_WIDTH,LCD_HEIGHT); | 980 | rb->lcd_blit_pal256((unsigned char*)*rb->lcd_framebuffer,0,0,0,0,LCD_WIDTH,LCD_HEIGHT); |
981 | } | 981 | } |
982 | #else | 982 | #else |
983 | if(options.scaling==3) { | 983 | if(options.scaling==3) { |
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index e27cbbe3e7..364176ce2d 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c | |||
@@ -290,7 +290,7 @@ void vid_update(int scanline) | |||
290 | else if (fb.mode==2) | 290 | else if (fb.mode==2) |
291 | scanline-=8; | 291 | scanline-=8; |
292 | scanline_remapped = scanline / 16; | 292 | scanline_remapped = scanline / 16; |
293 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; | 293 | frameb = *rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; |
294 | while (cnt < 160) { | 294 | while (cnt < 160) { |
295 | balance += LCD_WIDTH; | 295 | balance += LCD_WIDTH; |
296 | if (balance > 0) | 296 | if (balance > 0) |
@@ -316,7 +316,7 @@ void vid_update(int scanline) | |||
316 | else if (fb.mode==2) | 316 | else if (fb.mode==2) |
317 | scanline-=8; | 317 | scanline-=8; |
318 | scanline_remapped = scanline / 4; | 318 | scanline_remapped = scanline / 4; |
319 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; | 319 | frameb = *rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; |
320 | while (cnt < 160) { | 320 | while (cnt < 160) { |
321 | *(frameb++) = (scan.buf[0][cnt]&0x3) | | 321 | *(frameb++) = (scan.buf[0][cnt]&0x3) | |
322 | ((scan.buf[1][cnt]&0x3)<<2) | | 322 | ((scan.buf[1][cnt]&0x3)<<2) | |