VGA doesn't do correct colors

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Tux

VGA doesn't do correct colors

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:VGA doesn't do correct colors

Post 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
Post Reply