Original Post
I have the following code to set the screen mode:
// Set the Display Mode
if ( DD_OK != ( gpDD->SetDisplayMode ( intScreenWidth, intScreenHeight, 16, 0, 0 )))
{
return ( "Set Display Mode Failed." );
}
and I have my resolution set to 1600 * 1200. I have been fiddling with different colour settings and have got some very wierd results. If I set it 8 then I can draw on the screen but if I draw something in the middle of the screen (800,600) then it appears on the far right of the screen half way down, any further to the right it is drawn on the left of the screen.
If I set the colour to 24 bit then I get a Set Display Mode Failed Message (I have a GeForce 3 Ti 500) and if I set it to 32 then again I can draw on the screen but objects in the middle of the screen seem to be displayed again halfway down the screen but only 1/4 of the way across the screen from left to right.
I want to set the colour depth to 24 bit. What am I doing wrong. The code used to set up the windows and direct draw is taked from another application written by someone else (I have permission) so I don''t understand most of it. It works fine in 16 bit though.
Hope you can help
Giles