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?
VGA doesn't do correct colors
- Pype.Clicker
- 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
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
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