#167293 - hacker013 - Sun Mar 08, 2009 10:21 am
hey everybody,
I'm trying to set up an custom console on VRAM_F and VRAM_G on the main screen. My screen is the whole time messed up and sometimes just white. I don't know to fix it. I took the custom console code from Nitro Engine (didn't work) as code to work with. This is what I have now:
I think it is just a little mistake with something. Maybe you guys can help me or atleast point me in the right direction.
gr,
hacker013
_________________
Website / Blog
Let the nds be with you.
I'm trying to set up an custom console on VRAM_F and VRAM_G on the main screen. My screen is the whole time messed up and sometimes just white. I don't know to fix it. I took the custom console code from Nitro Engine (didn't work) as code to work with. This is what I have now:
Code: |
//consoleDemoInit();
videoSetModeSub(0); //videoSetMode(MODE_0_3D | DISPLAY_BG1_ACTIVE); videoSetMode(MODE_5_3D | DISPLAY_BG1_ACTIVE); vramSetBankF(VRAM_F_MAIN_BG); vramSetBankG(VRAM_G_MAIN_BG_0x06004000); BG_PALETTE[255] = 0xFFFF; REG_BG1CNT = BG_MAP_BASE(4) | BG_PRIORITY(0); // use bg 1 for text, set to highest priority //REG_BG0CNT = BG_PRIORITY(1); //set bg 0 (3d background) to be a lower priority than bg 1 consoleInit(consoleGetDefault(),1, BgType_Text4bpp, BgSize_T_256x256, 4,0,true, true); |
I think it is just a little mistake with something. Maybe you guys can help me or atleast point me in the right direction.
gr,
hacker013
_________________
Website / Blog
Let the nds be with you.