REG_DISPCNT = 4 | DISPCNT_BG2 | DISPCNT_FB1;
- vblperf_start(0xff);
+ vblperf_setcolor(0xff);
cdst = (uint16_t*)CRAM_BG_ADDR;
csrc = tuncross_cmap;
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++;