summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcdc.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 01:47:45 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 01:47:45 +0000
commit6952f03a7dfef2424164762ecd98fb128b7e44eb (patch)
tree2fa98afcc33e145d3c88417be24eb58a6f90cc9a /apps/plugins/rockboy/lcdc.c
parentdb8316fa52ed8eeb55136bc3aad2c98b25d249fb (diff)
downloadrockbox-6952f03a7dfef2424164762ecd98fb128b7e44eb.tar.gz
rockbox-6952f03a7dfef2424164762ecd98fb128b7e44eb.zip
Update for Rockboy: - fix scaling for other color screens than H300 - full menu rewrite to display choices properly - some small tweaks to code - some formatting updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10137 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/lcdc.c')
-rw-r--r--apps/plugins/rockboy/lcdc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/rockboy/lcdc.c b/apps/plugins/rockboy/lcdc.c
index 3c1cf9196d..3b7894d729 100644
--- a/apps/plugins/rockboy/lcdc.c
+++ b/apps/plugins/rockboy/lcdc.c
@@ -1,5 +1,3 @@
1
2
3#include "rockmacros.h" 1#include "rockmacros.h"
4 2
5#include "defs.h" 3#include "defs.h"
@@ -7,6 +5,7 @@
7#include "cpu-gb.h" 5#include "cpu-gb.h"
8#include "regs.h" 6#include "regs.h"
9#include "lcd-gb.h" 7#include "lcd-gb.h"
8#include "fb.h"
10 9
11 10
12#define C (cpu.lcdc) 11#define C (cpu.lcdc)
@@ -141,10 +140,11 @@ void lcdc_trans(void)
141 stat_trigger(); 140 stat_trigger();
142 break; 141 break;
143 case 2: 142 case 2:
144 lcd_refreshline(); 143 if (fb.enabled)
145 stat_change(3); 144 lcd_refreshline();
146 C += 86; 145 stat_change(3);
147 break; 146 C += 86;
147 break;
148 case 3: 148 case 3:
149 stat_change(0); 149 stat_change(0);
150 if (hw.hdma & 0x80) 150 if (hw.hdma & 0x80)