X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgamescr.c;h=1e715bfcb4f0a3be050fb2b7b027c3cf49a70a56;hb=720ddd2222c95350ae8f3608e1de504e85157dc1;hp=e5dd8e4ba46c32042c66da12fdf297e84e26557d;hpb=5295fa573612c0b9c8c47c3dc42464f75639845b;p=gbajam21 diff --git a/src/gamescr.c b/src/gamescr.c index e5dd8e4..1e715bf 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -7,8 +7,6 @@ #include "intr.h" #include "debug.h" -static unsigned char tex[32 * 32] __attribute__((section(".iwram"))); - void gamescr(void) { int i, j, tx, ty, angle, depth, nframes, backbuf, zoffs; @@ -16,6 +14,7 @@ void gamescr(void) uint16_t *cdst, *top, *bot; unsigned char *csrc; uint32_t tun, *tunptr; + unsigned char *tex; REG_DISPCNT = 4 | DISPCNT_BG2 | DISPCNT_FB1; @@ -31,6 +30,7 @@ void gamescr(void) fillblock_16byte(vram[0], 0xffffffff, 240 * 160 / 16); fillblock_16byte(vram[1], 0xffffffff, 240 * 160 / 16); + tex = iwram_sbrk(32 * 32); memcpy(tex, tuncross_pixels, 32 * 32); nframes = 0;