#83284 - Zed0 - Mon May 15, 2006 12:30 am
I'm trying to show a image on one background and then text on another background (same screen so it is on top of the image). The text and background both display but for some reason when I do:
A blue line comes up accross the screen (picture here).
It doesn't do this when I don't display the other background and it still does it even if I don't print any text.
Can anyone help with this?
Thanks
Zed0
Code: |
consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); |
A blue line comes up accross the screen (picture here).
It doesn't do this when I don't display the other background and it still does it even if I don't print any text.
Can anyone help with this?
Thanks
Zed0
Code: |
powerON(POWER_ALL);
// Setup the top screen for 3D videoSetMode(MODE_3_3D | DISPLAY_BG3_ACTIVE); // Setup bottom screen videoSetModeSub(MODE_3_2D | DISPLAY_BG3_ACTIVE | DISPLAY_BG1_ACTIVE); vramSetMainBanks(VRAM_A_MAIN_BG_0x6000000, VRAM_B_LCD, VRAM_C_SUB_BG , VRAM_D_LCD); BG3_CR = BG_BMP16_256x256; SUB_BG3_CR = BG_BMP16_256x256; BG3_XDX = 1 << 8; BG3_XDY = 0; BG3_YDX = 0; BG3_YDY = 1 << 8; SUB_BG3_XDX = 1 << 8; SUB_BG3_XDY = 0; SUB_BG3_YDX = 0; SUB_BG3_YDY = 1 << 8; BG3_CX = 0; BG3_CY = 26 << 8; SUB_BG3_CX = 0; SUB_BG3_CY = 32 << 8; irqInit(); irqSet(IRQ_VBLANK, 0); // End of startup stuff for(int i = 0; i < 256*256; i++) { BG_GFX[i] = ((u16*)SaberTitle_img_bin)[i] | BIT(15); BG_GFX_SUB[i] = ((u16*)MenuBack_img_bin)[i] | BIT(15); } consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); SUB_BG1_CR = BG_MAP_BASE(31); BG_PALETTE_SUB[255] = RGB15(31,31,31); // Uncomment for debugging iprintf("Hello World"); |