projects
/
gbajam21
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dropped aas, moved to maxmod
[gbajam21]
/
src
/
gamescr.c
diff --git
a/src/gamescr.c
b/src/gamescr.c
index
1e715bf
..
1b11c25
100644
(file)
--- a/
src/gamescr.c
+++ b/
src/gamescr.c
@@
-18,7
+18,7
@@
void gamescr(void)
REG_DISPCNT = 4 | DISPCNT_BG2 | DISPCNT_FB1;
REG_DISPCNT = 4 | DISPCNT_BG2 | DISPCNT_FB1;
- vblperf_start(0xff);
+ vblperf_setcolor(0xff);
cdst = (uint16_t*)CRAM_BG_ADDR;
csrc = tuncross_cmap;
cdst = (uint16_t*)CRAM_BG_ADDR;
csrc = tuncross_cmap;
@@
-43,7
+43,10
@@
void gamescr(void)
bot = vram[backbuf] + 159 * 240 / 2;
tunptr = tunmap;
for(i=0; i<80; i++) {
bot = vram[backbuf] + 159 * 240 / 2;
tunptr = tunmap;
for(i=0; i<80; i++) {
- for(j=0; j<240/2; j++) {
+ top++;
+ bot++;
+ tunptr++;
+ for(j=1; j<240/2; j++) {
uint16_t pptop, ppbot;
tun = *tunptr++;
uint16_t pptop, ppbot;
tun = *tunptr++;