#162453 - crazycrow - Wed Sep 03, 2008 9:05 am
Hi,
I try to draw something on the BG3 (a shape) , and on the BG2 I have a image display.
I init the screen like that
I use BG_BMP_RAM_SUB(0) and BG_BMP_RAM_SUB(4) to draw in.
The probleme is that the shape is not draw, but the image is draw.
With Dualis, I can see in the memory, the BG2 contain the image, and the BG3 , the shape.
Where I have Wrong ?
Last edited by crazycrow on Wed Sep 03, 2008 3:00 pm; edited 1 time in total
I try to draw something on the BG3 (a shape) , and on the BG2 I have a image display.
I init the screen like that
Code: |
vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_LCD,VRAM_C_SUB_BG , VRAM_D_LCD); videoSetModeSub( MODE_5_2D | DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE); SUB_BG2_CR = BG_BMP8_256x256 | BG_PRIORITY_3 | BG_BMP_BASE(0); SUB_BG2_XDX = 256; SUB_BG2_XDY = 0; SUB_BG2_YDX = 0; SUB_BG2_YDY = 256; SUB_BG2_CX = 0; SUB_BG2_CY = 0; SUB_BG3_CR = BG_BMP16_256x256 | BG_PRIORITY_0 | BG_BMP_BASE(4); SUB_BG3_XDX = 256; SUB_BG3_XDY = 0; SUB_BG3_YDX = 0; SUB_BG3_YDY = 256; SUB_BG3_CX = 0; SUB_BG3_CY = 0; |
I use BG_BMP_RAM_SUB(0) and BG_BMP_RAM_SUB(4) to draw in.
The probleme is that the shape is not draw, but the image is draw.
With Dualis, I can see in the memory, the BG2 contain the image, and the BG3 , the shape.
Where I have Wrong ?
Last edited by crazycrow on Wed Sep 03, 2008 3:00 pm; edited 1 time in total