Jump to content
  • Advertisement
Sign in to follow this  
coryv

Changing to Fullscreen problem

This topic is 5175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am temporarily using DevC++. I have some windows code here that seems correct in changing to fullscreen: DEVMODE devMode; memset(&devMode, 0, sizeof(DEVMODE)); devMode.dmSize = sizeof(DEVMODE); devMode.dmBitsPerPel = 32; devMode.dmPelsWidth = windowWidth; devMode.dmPelsHeight= windowHeight; devMode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL; if(ChangeDisplaySettings(&devMode, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL) fullscreen = 0; Obviously I have fullscreen and windowWidth and windowHeight previously defined... but the peculiar thing is that when I compile, my compiler returns this error: 'CDS_FULLSCREEN' undeclared (first use in function) I checked MSDN and it appears I'm using the ChangeDisplaySettings() method correctly.. Does anyone see a problem?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!