I think you are right, I chose a very dark color
Thank you for your time
It was the first thing I suspected because I remember when I played around with low-level video modes like that several years back, I had encountered something very similar.
Always keep in mind the palette and colors you are using. Keep in mind that you are using a graphics mode in which you specify a color from 0 to 256, and that color is initially defined based upon the palette shown on the wikipedia page I referenced earlier.
You actually can specify colors based on RGB values in this mode, but you have to use the palette as an intermediary way of doing things, and hence even though you can specify RGB values of colors you want, you can only have 256 different colors displayed on the screen at one time.
To change your palette and get different colors based upon RGB values you want to work with, try the following functions:
Code:
void writepal(int color, unsigned char r, unsigned char g, unsigned char b)
{
outp(0x3C6, 0xFF);
outp(0x3C8, color);
outp(0x3C9, r);
outp(0x3C9, g);
outp(0x3C9, b);
}
void getpal(int color, unsigned char &r, unsigned char &g, unsigned char &b)
{
outp(0x3C6, 0xFF);
outp(0x03C7, color);
r = inp(0x03C9);
g = inp(0x03C9);
b = inp(0x03C9);
}
I just dug this up from some old code I wrote. I don't guarantee it works. I don't really even remember what the function outp does
[EDIT]
Page about outp:
http://developers.cogentrts.com/coge...s/re-outp.html
Page about inp:
http://developers.cogentrts.com/coge...cs/re-inp.html
[/EDIT]