#170393 - tine622 - Mon Sep 21, 2009 6:31 am
Hello, I have a piece of code that allocates vram bank B and sets up a screen for the main window. Can anyone help me to convert this code to set up the screen for the sub screen on vram bank C?
I know it is something simple but I am having a horrible time trying to wrap my mind around the vram bank allocation. Thanks for your help =)
Mark Carpenter
Code: |
videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE); vramSetBankB(VRAM_B_MAIN_BG_0x06020000); BACKGROUND.control[3] = BG_BMP16_256x256 | BG_BMP_BASE(8) | BG_PRIORITY(3); BACKGROUND.bg3_rotation.xdx = 1 << 8; BACKGROUND.bg3_rotation.xdy = 0; BACKGROUND.bg3_rotation.ydx = 0; BACKGROUND.bg3_rotation.ydy = 1 << 8; *screen = new BScreen((uint16*)BG_BMP_RAM(8), BSize(256,192)); // BG3 on main |
I know it is something simple but I am having a horrible time trying to wrap my mind around the vram bank allocation. Thanks for your help =)
Mark Carpenter