diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-03 19:44:02 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-03 19:44:02 +0000 |
commit | 3921e1aa6979163c2a07122dff49f6afef977a94 (patch) | |
tree | 9fc5cc461759e012a3fb6eecf55874a29a9eaebf /apps/plugins/rockboy/sys_rockbox.c | |
parent | 708e357a6351045f450be4ad28823463be161b6d (diff) | |
download | rockbox-3921e1aa6979163c2a07122dff49f6afef977a94.tar.gz 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.c | 11 |
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) | |||
81 | released = ~newbuttonstate & oldbuttonstate; | 81 | released = ~newbuttonstate & oldbuttonstate; |
82 | pressed = newbuttonstate & ~oldbuttonstate; | 82 | pressed = newbuttonstate & ~oldbuttonstate; |
83 | oldbuttonstate = newbuttonstate; | 83 | oldbuttonstate = newbuttonstate; |
84 | 84 | fb.mode=rb->button_hold(); | |
85 | if(released) { | 85 | if(released) { |
86 | ev.type = EV_RELEASE; | 86 | ev.type = EV_RELEASE; |
87 | if(released & BUTTON_LEFT) { ev.code=PAD_LEFT; ev_postevent(&ev); } | 87 | if(released & BUTTON_LEFT) { ev.code=PAD_LEFT; ev_postevent(&ev); } |
@@ -144,6 +144,7 @@ void vid_begin(void) | |||
144 | fb.enabled=1; | 144 | fb.enabled=1; |
145 | fb.dirty=0; | 145 | fb.dirty=0; |
146 | video_base_buf=fb.ptr=(byte *)frameb; | 146 | video_base_buf=fb.ptr=(byte *)frameb; |
147 | fb.mode=0; | ||
147 | } | 148 | } |
148 | 149 | ||
149 | void vid_update(int scanline) | 150 | void vid_update(int scanline) |
@@ -152,8 +153,8 @@ void vid_update(int scanline) | |||
152 | byte *frameb; | 153 | byte *frameb; |
153 | #if LCD_HEIGHT == 64 /* Archos */ | 154 | #if LCD_HEIGHT == 64 /* Archos */ |
154 | int balance = 0; | 155 | int balance = 0; |
155 | if (scanline >= 128) | 156 | if (fb.mode==1) |
156 | return; | 157 | scanline-=16; |
157 | scanline_remapped = scanline / 16; | 158 | scanline_remapped = scanline / 16; |
158 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; | 159 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; |
159 | while (cnt < 160) { | 160 | while (cnt < 160) { |
@@ -225,8 +226,8 @@ void vid_update(int scanline) | |||
225 | } | 226 | } |
226 | rb->lcd_update_rect(0, (scanline/2) & ~7, LCD_WIDTH, 8); | 227 | rb->lcd_update_rect(0, (scanline/2) & ~7, LCD_WIDTH, 8); |
227 | #else /* LCD_HEIGHT != 64, iRiver */ | 228 | #else /* LCD_HEIGHT != 64, iRiver */ |
228 | if (scanline >= 128) | 229 | if (fb.mode==1) |
229 | return; | 230 | scanline-=16; |
230 | scanline_remapped = scanline / 8; | 231 | scanline_remapped = scanline / 8; |
231 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; | 232 | frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; |
232 | while (cnt < 160) { | 233 | while (cnt < 160) { |