I have successfully loaded 256x512 backgrounds but when I try to load a 512x512 it doesn't appear on screen properly. Here is my code in a nutshell:
int bg = bgInit(a_priority, BgType_Text4bpp, BgSize_T_512x512, 0, 1);
dmaCopy(bg_rockfieldTiles, bgGetGfxPtr(bg), bg_rockfieldTilesLen);
dmaCopy(bg_rockfieldPal, BG_PALETTE, bg_rockfieldPalLen);
dmaCopy(bg_rockfieldMap, bgGetMapPtr(bg), bg_rockfieldMapLen);
Grit rule file reads as follows:
# Set the warning/log level to 3
# Tell grit to include a palette (the first index in it will be transparent)
# Tile the image
# Set the bit depth to 4 (16 colors)
# Include map data
The tiles are about 13k in size and the map is about 8k.
The BG should look like this:http://postimg.org/image/khi1h2s4j/
But in game it looks like this:http://postimg.org/image/xkdo0cicj/
Can somebody please help me see what I am overlooking? Thank You.