X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgamescr.c;h=1b11c25796d657fbf863aedf20d4273313cfe007;hb=622fc6ef720a41a066e1bfcbdc6e003609da2da7;hp=1e715bfcb4f0a3be050fb2b7b027c3cf49a70a56;hpb=720ddd2222c95350ae8f3608e1de504e85157dc1;p=gbajam21 diff --git a/src/gamescr.c b/src/gamescr.c index 1e715bf..1b11c25 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -18,7 +18,7 @@ void gamescr(void) REG_DISPCNT = 4 | DISPCNT_BG2 | DISPCNT_FB1; - vblperf_start(0xff); + vblperf_setcolor(0xff); 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++) { - for(j=0; j<240/2; j++) { + top++; + bot++; + tunptr++; + for(j=1; j<240/2; j++) { uint16_t pptop, ppbot; tun = *tunptr++;