#74653 - Webez - Mon Mar 06, 2006 8:29 pm
Hi.
I have set a text background in mode 0
And I wanted to test scrolling so I have put SUB_BG1_X0++ into a vblank function. In dualis it works ok but on desmume and hardware it doesn't scroll. Am I doing something wrong?
Other strange thing that happens is that when I set BG_WRAP_ON or GL_TEXTURE_WRAP_S/T (this with textures of course) then garbage appears in the tile image.
I have set a text background in mode 0
Code: |
vramSetBankC(VRAM_C_SUB_BG);
videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE| DISPLAY_BG1_ACTIVE); SUB_BG1_CR = BG_256_COLOR | BG_TILE_BASE(char_base) | BG_MAP_BASE(screen_base); |
And I wanted to test scrolling so I have put SUB_BG1_X0++ into a vblank function. In dualis it works ok but on desmume and hardware it doesn't scroll. Am I doing something wrong?
Other strange thing that happens is that when I set BG_WRAP_ON or GL_TEXTURE_WRAP_S/T (this with textures of course) then garbage appears in the tile image.