#59386 - alangerow - Tue Nov 01, 2005 8:53 am
When trying Headspin's keyboard examples (Extended Keyboard Example 4), I'm getting the first tile repeated for the bottom third of the screen. I've spent all night trying to get it to not do that, to no luck. I'm wondering if anyone may have any advice.
This is a screenshot of the problem:
[Images not permitted - Click here to view it]
And here is a sample of the code:
This is a screenshot of the problem:
[Images not permitted - Click here to view it]
And here is a sample of the code:
Code: |
videoSetMode(MODE_0_2D | DISPLAY_BG0_ACTIVE);
vramSetMainBanks(VRAM_A_MAIN_BG_0x6000000, VRAM_B_MAIN_BG_0x6020000, VRAM_C_SUB_BG , VRAM_D_LCD); uint16 * map = (uint16 *) SCREEN_BASE_BLOCK(29); BG0_CR = BG_COLOR_16 | BG_32x32 | (29 << SCREEN_SHIFT) | (1 << CHAR_SHIFT); dmaCopy((uint16 *)keyboard_Palette, (uint16 *)BG_PALETTE, 32); dmaCopy((uint16 *)keyboard_Map, (uint16 *)map, 1024); dmaCopy((uint16 *)keyboard_Tiles, (uint16 *)CHAR_BASE_BLOCK(1), 14080); |