#172852 - sylvestersteele - Mon Mar 08, 2010 3:46 pm
Hi,
I got a background to display properly- but when I use tiles nothing happens.
My init code is:
To display I use:
And my command line params to grit- which I used to convert a 64x64 png are:
-fts -W3 -gT! -gt -gB4
I looked at the following post- but I couldn't figure what I am missing.
http://forum.gbadev.org/viewtopic.php?t=16828
I got a background to display properly- but when I use tiles nothing happens.
My init code is:
Code: |
vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000, VRAM_C_SUB_BG_0x06200000, VRAM_D_LCD); videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE); videoSetModeSub(MODE_5_2D | DISPLAY_BG3_ACTIVE); REG_BG3CNT = BG_RS_64x64 | BG_TILE_BASE(1) | BG_PRIORITY(0); REG_BG3PA = 1<< 8; REG_BG3PB = 0; REG_BG3PC = 0; REG_BG3PD = 1<< 8; REG_BG3X = 0; REG_BG3Y = 0; |
To display I use:
Code: |
dmaCopyHalfWords(DMA_CHANNEL,
shuttleBitmap, (uint16 *)BG_TILE_RAM(1), shuttleBitmapLen); dmaCopyHalfWords(DMA_CHANNEL, shuttlePal, (uint16 *)TILE_PALETTE(1), shuttlePalLen); |
And my command line params to grit- which I used to convert a 64x64 png are:
-fts -W3 -gT! -gt -gB4
I looked at the following post- but I couldn't figure what I am missing.
http://forum.gbadev.org/viewtopic.php?t=16828