X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpolyfill.c;h=911b1d7922264d725174178a7be9735585d58291;hb=09ff9fd9a87d495d8c2d55203af89d0f651b5d3a;hp=8b01ea1184bf7946d4a53c201ef5ae96951207b8;hpb=44264cadf1268165c5293ed3bb2bf932336d1ae6;p=gbajam22 diff --git a/src/polyfill.c b/src/polyfill.c index 8b01ea1..911b1d7 100644 --- a/src/polyfill.c +++ b/src/polyfill.c @@ -21,9 +21,9 @@ along with this program. If not, see . static unsigned char *fb; static int fbwidth, fbheight; -static short scantab[2][160] __attribute__((section(".iwram"))); +static short scantab[2][160]; -void polyfill_framebuffer(unsigned char *ptr, int w, int h) +void polyfill_framebuffer(void *ptr, int w, int h) { fb = ptr; fbwidth = w; @@ -34,6 +34,7 @@ void polyfill_framebuffer(unsigned char *ptr, int w, int h) #define VPREV(p) ((p) == varr ? vlast : (p) - 1) #define VSUCC(p, side) ((side) == 0 ? VNEXT(p) : VPREV(p)) +ARM_IWRAM void polyfill_flat(struct pvertex *varr, int vnum, unsigned char col) { int i, line, top, bot;