#130636 - ShadowX - Wed Jun 06, 2007 12:47 am
I tried to draw a bitmap in GBA using C.
Look what happens:
http://img529.imageshack.us/img529/6895/errorhl8.png
I used this code:
Look what happens:
http://img529.imageshack.us/img529/6895/errorhl8.png
I used this code:
Code: |
int main() { u16 loop,x; SetMode( MODE_4 | BG2_ENABLE ); for (loop=0;loop<256;loop++) { BG_PaletteMem[loop]=palette[loop]; } for (x=0;x<(240*160);x++) { FrontBuffer[x]=bitmap[x]; } return 0; } |