Page 1 of 1

VGA doesn't do correct colors

Posted: Sat Apr 19, 2003 9:44 am
by Tux
1) Enter VGA mode (320*240*256 through ports)
2) Setup the palette
3) Setup pages
4) Draw pixel

Doesn't happen *correctly*. I define the color "0,0,128" in my palette and then I load the palette. The color that gets put on the sceen isn't the same. Some colors are the same. While others, they are bluishy or just black. I just need to know if anybody else had this problem?

Re:VGA doesn't do correct colors

Posted: Sun Apr 20, 2003 5:36 am
by Pype.Clicker
remember in VGA, you only have 6 bits for each of the Red, Green and Blue component ...

So white is "63,63,63", and not "255,255,255" as one could think ...

I guesss this is where your problems come from: for the VGA card, 128=0