Advertisement

Voodoo3 fullscreen problem.

Started by July 08, 2000 04:55 AM
10 comments, last by Coskey 24 years, 4 months ago

Just tried the bits per pixel suggestion w/ no luck...

if (!CreateGLWindow("Test 3D World",640,480,32,fullscreen))..

So far, to save the screen settings I''ve been doing:

if (fullscreen) // Attempt Fullscreen Mode?
{
HDC hdc = GetDC(NULL); // Screen DC used to get current display settings
dvmdOrig.dmPelsWidth = GetDeviceCaps(hdc, HORZRES);
dvmdOrig.dmPelsHeight = GetDeviceCaps(hdc, VERTRES);
dvmdOrig.dmBitsPerPel = GetDeviceCaps(hdc, BITSPIXEL);
dvmdOrig.dmDisplayFrequency = GetDeviceCaps(hdc, VREFRESH);
ReleaseDC(NULL, hdc);

DEVMODE dmScreenSettings; // Device Mode
...

in CreateGLWindow() and then in KillGLWindow()

ChangeDisplaySettings(&dvmdOrig,0); // If So Switch Back To The Desktop

All looks OK to me but it doesn''t work w/ the Voodoo 3


Spikus



There are two places to change the !CreateGLWindow("Test 3D World",640,480,32,fullscreen. Thats the first one then a few lines down there is another one. -Jarred Capellman

This topic is closed to new replies.

Advertisement