When I try to use LPDIRECTDRAWGAMMACONTROL::SetGammaRamp the system hangs. Maybe I am not using it right, but that''s because there is little explanation and no samples. I''ve written this piece of code (don''t worry, DDRAW is initialized).
unsigned short rp;//vars
};//just a sample
Maybe someone knows more about this method.
I am using an S3 virge 375/385 videocard. But the system shouldn''t hang, the function is supposed to return an error then. That''s why I think, I did something wrong, or I forgot something. The sample in the original post is the only part that has to do with the gamma control. The rest (not seen), is only creating directdraw surfaces and setting the screenmode to 800x600x16.