gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Draw pixel into extend rotation bg?

#75140 - Webez - Fri Mar 10, 2006 1:20 pm

Hi.

I know that this backgrounds are 16 bits or 8 bits depending on what you chose. I am tryng to draw a pixel in 8 bit mode but I have some problems. First I load a color into the 256 color palette (last one). Then I tried this

Code:
((u8*)BG_GFX_SUB)[pos] =255;


But that didn't work

So I am using this wich I don't like beacuse only allows using the last palette index

Code:
(BG_GFX_SUB)[pos] =-1;


Wich is the correct way of drawing? Thanks