summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-03-03 19:44:02 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-03-03 19:44:02 +0000
commit3921e1aa6979163c2a07122dff49f6afef977a94 (patch)
tree9fc5cc461759e012a3fb6eecf55874a29a9eaebf /apps/plugins/rockboy/sys_rockbox.c
parent708e357a6351045f450be4ad28823463be161b6d (diff)
downloadrockbox-3921e1aa6979163c2a07122dff49f6afef977a94.tar.gz
rockbox-3921e1aa6979163c2a07122dff49f6afef977a94.tar.bz2
rockbox-3921e1aa6979163c2a07122dff49f6afef977a94.zip
Added dynarec(under construction) and outline for lcd modes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6119 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 17487595e9..4adb0a345e 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -81,7 +81,7 @@ void ev_poll(void)
released = ~newbuttonstate & oldbuttonstate;
pressed = newbuttonstate & ~oldbuttonstate;
oldbuttonstate = newbuttonstate;
-
+ fb.mode=rb->button_hold();
if(released) {
ev.type = EV_RELEASE;
if(released & BUTTON_LEFT) { ev.code=PAD_LEFT; ev_postevent(&ev); }
@@ -144,6 +144,7 @@ void vid_begin(void)
fb.enabled=1;
fb.dirty=0;
video_base_buf=fb.ptr=(byte *)frameb;
+ fb.mode=0;
}
void vid_update(int scanline)
@@ -152,8 +153,8 @@ void vid_update(int scanline)
byte *frameb;
#if LCD_HEIGHT == 64 /* Archos */
int balance = 0;
- if (scanline >= 128)
- return;
+ if (fb.mode==1)
+ scanline-=16;
scanline_remapped = scanline / 16;
frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
while (cnt < 160) {
@@ -225,8 +226,8 @@ void vid_update(int scanline)
}
rb->lcd_update_rect(0, (scanline/2) & ~7, LCD_WIDTH, 8);
#else /* LCD_HEIGHT != 64, iRiver */
- if (scanline >= 128)
- return;
+ if (fb.mode==1)
+ scanline-=16;
scanline_remapped = scanline / 8;
frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
while (cnt < 160) {