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.

Graphics > How to set the Display Mode

#14748 - pinkywu - Mon Jan 12, 2004 8:59 am

I want to as How to set the Display Mode to mode 4, as mode 4 use 8 bit pixel, what should I pay attention.
the following code use to converts a color value to 15 bit BGR value used by GBA when use mode 3
#define RGB(r,g,b) ((r)+((g)<<5)+((b)<<10)).
In mode 4 what should set.
anyother need to change.

Thanks.

#14766 - tepples - Mon Jan 12, 2004 5:52 pm

Before trying mode 4, you should be familiar with indexed color and palette animation. Then go set mode 4 the same way you set mode 3, but recognize that you have to write 2 or 4 pixels at a time in mode 4.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.