#100768 - ThomasS - Wed Aug 30, 2006 12:45 pm
Hi,
I want to use 2 extended rotation backgrounds (Mode 5). Code for loading one of them:
The background alone is displayed ok, but I want the other background to use a different palette:
But how can I tell the DS which palette a BG should use?
I want to use 2 extended rotation backgrounds (Mode 5). Code for loading one of them:
Code: |
BG3_CR = BG_BMP8_256x256 + BG_BMP_BASE(0);
BG3_XDX = 1 << 8; BG3_XDY = 0; BG3_YDX = 0; BG3_YDY = 1 << 8; BG3_CX = 0 << 8; BG3_CY = 0 << 8; dmaCopy(Title_bin, (uint16*)(BG_BMP_RAM(0), 256*256); dmaCopy(TitlePal_bin, BG_PALETTE, 256*2); |
The background alone is displayed ok, but I want the other background to use a different palette:
Code: |
dmaCopy(OtherPal_bin, BG_PALETTE + 256*2, 256*2);
|
But how can I tell the DS which palette a BG should use?