src/video/nds/SDL_ndsvideo.c
branchgsoc2008_nds
changeset 2681 c15b6c758be5
parent 2680 4135aa9c5645
child 2682 f7594fc66bda
     1.1 --- a/src/video/nds/SDL_ndsvideo.c	Sat Jul 19 17:37:19 2008 +0000
     1.2 +++ b/src/video/nds/SDL_ndsvideo.c	Fri Jul 25 23:39:14 2008 +0000
     1.3 @@ -198,10 +198,12 @@
     1.4  {
     1.5  printf("+NDS_SetDisplayMode\n");
     1.6      /* right now this function is just hard-coded for 256x192 ABGR1555 */
     1.7 -    videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE);       /* display on main core */
     1.8 -    videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE);    /* debug text on sub */
     1.9 +    videoSetMode(MODE_5_2D |
    1.10 +        DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE
    1.11 +        DISPLAY_SPR_1D_LAYOUT | DISPLAY_SPR_ACTIVE); /* display on main core */
    1.12 +    videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE); /* debug text on sub */
    1.13      vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000,
    1.14 -                     VRAM_C_SUB_BG_0x06200000,  VRAM_C_SUB_BG_0x06220000);
    1.15 +                     VRAM_C_SUB_BG_0x06200000,  VRAM_D_SUB_BG_0x06220000);
    1.16      vramSetBankE(VRAM_E_MAIN_SPRITE);
    1.17      /* set up console for debug text 'n stuff */
    1.18      SUB_BG0_CR = BG_MAP_BASE(31);