#2349 - remi59 - Sun Feb 02, 2003 9:55 am
Can one adjust the constrast of GBA without modifying the palette in MODE 0? How??
Thanks in advance!
@+
_________________
---@Remi59@---
BOMBERMAN ZERO
Soon in your GBA
#2357 - Splam - Sun Feb 02, 2003 11:59 am
what on earth is that? Palettes are 16bit values RGB 555 so unfortunatly that code is nonsense ;) and even if it was 8bit for each r,g,b testing for < 256 then if it is adding 1 would allow values of 256 which would = 0 ie wrap.
-edit-
In my shocked state ;) I forgot to tell you how to do it..
Simply use the colour special effects modes. Theres probably something about it in one of the documents around but it simply involves setting a register (BLDCNT) to say which BGs you want to effect and that you're doing a colour darken or brighten effect, then another register (BLDY) holds the amount to effect it by. Used quite a lot for screen fades.