I'm trying put a 768x768 px background and do it scroll, but the final is:
in the top: when I do scroll, the result is
and in the botton whithout scroll there are many black px:
and the code is:
http://devkitpro.org/download/file.php?mode=view&id=56
Code: Select all
void InitBasico(void){
//Iniciar modo de Video
videoSetMode(MODE_0_2D);
videoSetModeSub(MODE_0_2D);
bgExtPaletteEnable();
bgExtPaletteEnableSub();
//Memoria Vram
vramSetPrimaryBanks(VRAM_A_MAIN_BG, VRAM_B_MAIN_SPRITE, VRAM_C_SUB_BG, VRAM_D_SUB_SPRITE);
vramSetBanks_EFG(VRAM_E_LCD, VRAM_F_LCD, VRAM_G_LCD);
vramSetBankH(VRAM_H_LCD);
vramSetBankI(VRAM_I_LCD);
}
Code: Select all
REG_BG0CNT = BgType_Text8bpp | bg_size | BG_PRIORITY_0 | BG_PALETTE_SLOT0 | BG_COLOR_256 | BG_TILE_BASE(1) | BG_MAP_BASE(0);
Code: Select all
bgInit(0, BgType_Text8bpp, bg_size, 0, 1);
bgSetPriority(0, 0);
Users browsing this forum: No registered users and 1 guest