annotate src/gba/GBAGfx.cpp @ 198:5055ec9de278

competed move-table printing component of pokemon printing function.
author Robert McIntyre <rlm@mit.edu>
date Fri, 23 Mar 2012 00:30:34 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #include "../Port.h"
rlm@1 2 #include "GBAGfx.h"
rlm@1 3
rlm@1 4 int coeff[32] = {
rlm@1 5 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
rlm@1 6 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16
rlm@1 7 };
rlm@1 8
rlm@1 9 // some of the rendering code in gfx.h (such as mode 0 line 1298)
rlm@1 10 // renders outside the given buffer (past 239) which corrupts other memory,
rlm@1 11 // so rather than find all places in that code that need to be fixed,
rlm@1 12 // just give it enough extra scratch space to use
rlm@1 13
rlm@1 14 u32 line0[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 15 u32 line1[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 16 u32 line2[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 17 u32 line3[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 18 u32 lineOBJ[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 19 u32 lineOBJWin[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 20 u32 lineMix[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 21 bool gfxInWin0[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 22 bool gfxInWin1[240+LINE_BUFFER_OVERFLOW_LEEWAY];
rlm@1 23
rlm@1 24 int gfxBG2Changed = 0;
rlm@1 25 int gfxBG3Changed = 0;
rlm@1 26
rlm@1 27 int gfxBG2X = 0;
rlm@1 28 int gfxBG2Y = 0;
rlm@1 29 int gfxBG2LastX = 0;
rlm@1 30 int gfxBG2LastY = 0;
rlm@1 31 int gfxBG3X = 0;
rlm@1 32 int gfxBG3Y = 0;
rlm@1 33 int gfxBG3LastX = 0;
rlm@1 34 int gfxBG3LastY = 0;
rlm@1 35 int gfxLastVCOUNT = 0;