#119149 - outphase - Tue Feb 20, 2007 4:02 am
I'm trying to get a tiled bg to show up, but only static and other garbage appears. The image was generated using "git haruhi_logo.gif -ftb -m" Any thoughts as to why it won't show up? maybe a missed declaration or so. If more code is needed let me know as I thought this would be the vital block.
Code: |
videoSetModeSub(MODE_5_2D | DISPLAY_BG3_ACTIVE);
vramSetMainBanks(VRAM_A_MAIN_BG, VRAM_B_MAIN_BG, VRAM_C_SUB_BG, VRAM_D_LCD); vramSetBankE(VRAM_E_MAIN_SPRITE); lcdMainOnBottom(); SUB_BG3_CR = BG_BMP8_256x256 | BG_MAP_BASE(0) | BG_TILE_BASE(1); SUB_BG3_XDX = BIT(8); // scale x SUB_BG3_XDY = 0; // rotation x SUB_BG3_YDX = 0; // rotation y SUB_BG3_YDY = BIT(8); // scale y SUB_BG3_CX = 0; // translation x SUB_BG3_CY = 0; // translation y memcpy((uint16 *)BG_PALETTE_SUB,haruhi_logo_pal_bin,haruhi_logo_pal_bin_size); memcpy((void *)BG_MAP_RAM_SUB(0),haruhi_logo_map_bin,haruhi_logo_map_bin_size); memcpy((void *)BG_TILE_RAM_SUB(1),haruhi_logo_img_bin, haruhi_logo_img_bin_size); |