summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-03-04 20:56:49 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-03-04 20:56:49 +0000
commitebd63b52cd22a173106085b79404688d267a801a (patch)
treed4b1aea7c7c5f1c83539c36d6ba5d430b5e32597 /apps/plugins/rockboy/sys_rockbox.c
parent984cd6e568c841f4110f070161ad28fbe4c85342 (diff)
downloadrockbox-ebd63b52cd22a173106085b79404688d267a801a.tar.gz
rockbox-ebd63b52cd22a173106085b79404688d267a801a.tar.bz2
rockbox-ebd63b52cd22a173106085b79404688d267a801a.zip
New lcd mode: drop every 9th line; set as default.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 9bc3a6b350..64c3385169 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -83,7 +83,7 @@ void ev_poll(void)
oldbuttonstate = newbuttonstate;
#if CONFIG_KEYPAD == IRIVER_H100_PAD
if (rb->button_hold()&~holdbutton)
- fb.mode=(fb.mode+1)%3;
+ fb.mode=(fb.mode+1)%4;
holdbutton=rb->button_hold();
#endif
if(released) {
@@ -153,7 +153,7 @@ void vid_init(void)
fb.enabled=1;
fb.dirty=0;
video_base_buf=fb.ptr=(byte *)frameb;
- fb.mode=0;
+ fb.mode=3;
}
void vid_update(int scanline)
@@ -164,11 +164,8 @@ void vid_update(int scanline)
int balance = 0;
if (fb.mode==1)
scanline-=16;
- else if (fb.mode==2) {
+ else if (fb.mode==2)
scanline-=8;
- if(scanline>=128)
- return;
- }
scanline_remapped = scanline / 16;
frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
while (cnt < 160) {
@@ -242,11 +239,8 @@ void vid_update(int scanline)
#else /* LCD_HEIGHT != 64, iRiver */
if (fb.mode==1)
scanline-=16;
- else if (fb.mode==2) {
+ else if (fb.mode==2)
scanline-=8;
- if(scanline>=128)
- return;
- }
#ifdef GRAYSCALE
scanline_remapped = scanline / 4;
#else