🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Voodoo3 fullscreen problem.

Started by
10 comments, last by Coskey 23 years, 11 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



Advertisement
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