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.

Beginners > Pixel mode4

#50571 - NighTiger - Wed Aug 10, 2005 8:28 pm

Hi guys,
can anybody write me why if I try to plot a pixel in a way like that

FrontBuffer[index] = u16_color;

in Mode4, I see nothing?
(In mode3 and mode5 work right!)
tnx

#50576 - tepples - Wed Aug 10, 2005 8:49 pm

Mode 4 uses indexed color. You need to set up the background palette first, and you need to write two pixels at once.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.