diff options
author | Ian C <ianc@noddybox.co.uk> | 2010-11-22 15:44:40 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2010-11-22 15:44:40 +0000 |
commit | 335e8c52154b4ae4e3c12d88d7c50891a60a660e (patch) | |
tree | d87ca06847bcbc7bb1836bd8d65e5c05fc9c9290 /source | |
parent | 1f3fcd6a589cbee299d37f418af8ee08d10679a3 (diff) |
Graphics initialisation closer to working
Diffstat (limited to 'source')
-rw-r--r-- | source/main.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/main.c b/source/main.c index 010210c..15a6aad 100644 --- a/source/main.c +++ b/source/main.c @@ -315,11 +315,11 @@ int main(int argc, char *argv[]) vramSetBankA(VRAM_A_MAIN_BG_0x06000000); vramSetBankB(VRAM_B_MAIN_BG_0x06020000); - main_bitmap_bg = bgInit(0, BgType_Bmp16, BgSize_B16_256x256, 2, 0); - main_text_overlay_bg = bgInit(3, BgType_Text8bpp, BgSize_T_256x256, 0, 1); + main_bitmap_bg = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 2, 0); + main_text_overlay_bg = bgInit(0, BgType_Text8bpp, BgSize_T_256x256, 0, 1); - bgSetPriority(main_bitmap_bg, 1); - bgSetPriority(main_text_overlay_bg, 0); + bgSetPriority(main_bitmap_bg, 0); + bgSetPriority(main_text_overlay_bg, 1); BG_PALETTE[0] = RGB15(31,31,31); BG_PALETTE[1] = RGB15(0,0,0); @@ -333,16 +333,14 @@ int main(int argc, char *argv[]) for some pointless frippery! Still be quicker though. */ videoSetModeSub(MODE_4_2D); - videoBgEnableSub(2); - videoBgEnableSub(3); vramSetBankC(VRAM_C_SUB_BG_0x06200000); - sub_bitmap_bg = bgInit(3, BgType_Bmp8, BgSize_B8_256x256, 1, 0); - sub_text_overlay_bg = bgInit(2, BgType_Rotation, BgSize_R_256x256, 4, 0); + sub_bitmap_bg = bgInitSub(3, BgType_Bmp8, BgSize_B8_256x256, 1, 0); + sub_text_overlay_bg = bgInitSub(2, BgType_Rotation, BgSize_R_256x256, 4, 0); - bgSetPriority(sub_bitmap_bg, 1); - bgSetPriority(sub_text_overlay_bg, 0); + bgSetPriority(sub_bitmap_bg, 0); + bgSetPriority(sub_text_overlay_bg, 1); /* Tell 'framebuffer' routines to use this */ |