From 335e8c52154b4ae4e3c12d88d7c50891a60a660e Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 22 Nov 2010 15:44:40 +0000 Subject: Graphics initialisation closer to working --- source/main.c | 18 ++++++++---------- 1 file 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 */ -- cgit v1.2.3