#162534 - crazycrow - Thu Sep 04, 2008 4:28 pm
Hello,
I have another problem with the DS dev.
I have my 2 BG working, but I didn't manage to activate the console on it.
I activate BG0, BG2, BG3, but BG0 is fully corrupted.
Here is my code :
The Background 0 is corruped, but seem to be a tileset
Have you an idea ?
Thanks
I have another problem with the DS dev.
I have my 2 BG working, but I didn't manage to activate the console on it.
I activate BG0, BG2, BG3, but BG0 is fully corrupted.
Here is my code :
Code: |
vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000,VRAM_C_SUB_BG_0x06200000 , VRAM_D_LCD); videoSetModeSub( MODE_5_2D | DISPLAY_BG0_ACTIVE | DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE); SUB_BG0_CR = BG_MAP_BASE(31) | BG_PRIORITY_1; SUB_BG0_X0 = 0; SUB_BG0_Y0 = 0; SUB_BG2_CR = BG_BMP8_256x256 | BG_PRIORITY_2 | BG_BMP_BASE(0); SUB_BG2_XDX = 256; SUB_BG2_XDY = 0; SUB_BG2_YDX = 0; SUB_BG2_YDY = 256; SUB_BG2_CX = 0; SUB_BG2_CY = 0; SUB_BG3_CR = BG_BMP16_256x256 | BG_PRIORITY_0 | BG_BMP_BASE(3); SUB_BG3_XDX = 256; SUB_BG3_XDY = 0; SUB_BG3_YDX = 0; SUB_BG3_YDY = 256; SUB_BG3_CX = 0; SUB_BG3_CY = 0; consoleInitDefault((u16*)BG_BMP_RAM_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); drawImageOnBG3(); // copy 256*192 pixel and the pal drawSquareOnBG2();// square of 50x50 on top left |
The Background 0 is corruped, but seem to be a tileset
Have you an idea ?
Thanks