#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
But that didn't work
So I am using this wich I don't like beacuse only allows using the last palette index
Wich is the correct way of drawing? Thanks
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