Mercurial > sdl-ios-xcode
comparison src/video/nds/SDL_ndsvideo.c @ 2681:c15b6c758be5 gsoc2008_nds
Some small bug fixes and more work on video
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Fri, 25 Jul 2008 23:39:14 +0000 |
parents | 4135aa9c5645 |
children | f7594fc66bda |
comparison
equal
deleted
inserted
replaced
2680:4135aa9c5645 | 2681:c15b6c758be5 |
---|---|
197 static int | 197 static int |
198 NDS_SetDisplayMode(_THIS, SDL_DisplayMode * mode) | 198 NDS_SetDisplayMode(_THIS, SDL_DisplayMode * mode) |
199 { | 199 { |
200 printf("+NDS_SetDisplayMode\n"); | 200 printf("+NDS_SetDisplayMode\n"); |
201 /* right now this function is just hard-coded for 256x192 ABGR1555 */ | 201 /* right now this function is just hard-coded for 256x192 ABGR1555 */ |
202 videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE); /* display on main core */ | 202 videoSetMode(MODE_5_2D | |
203 videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE); /* debug text on sub */ | 203 DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE |
204 DISPLAY_SPR_1D_LAYOUT | DISPLAY_SPR_ACTIVE); /* display on main core */ | |
205 videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE); /* debug text on sub */ | |
204 vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000, | 206 vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000, |
205 VRAM_C_SUB_BG_0x06200000, VRAM_C_SUB_BG_0x06220000); | 207 VRAM_C_SUB_BG_0x06200000, VRAM_D_SUB_BG_0x06220000); |
206 vramSetBankE(VRAM_E_MAIN_SPRITE); | 208 vramSetBankE(VRAM_E_MAIN_SPRITE); |
207 /* set up console for debug text 'n stuff */ | 209 /* set up console for debug text 'n stuff */ |
208 SUB_BG0_CR = BG_MAP_BASE(31); | 210 SUB_BG0_CR = BG_MAP_BASE(31); |
209 BG_PALETTE_SUB[255] = RGB15(31, 31, 31); | 211 BG_PALETTE_SUB[255] = RGB15(31, 31, 31); |
210 /* debugging purposes, uncomment this later. then remove it & add 2screen. | 212 /* debugging purposes, uncomment this later. then remove it & add 2screen. |