Original Post
I''m trying to set up an application with support for fullscreen opengl. My understanding is that this is accompilished with:
But thats where the problem comes in. On several other opengl example programs that I have compiled and run fullscreen works fine. But when I try to use it in my app, as specified above, it will NOT work. Are there some other project settings or something that I''m overlooking, or an include? Any input would be very appreciated. Thanks...
// Setup fullscreen DEVMODE devModeScreen; // Device mode memset(&devModeScreen,0,sizeof(devModeScreen)); // Clear mode devModeScreen.dmSize=sizeof(devModeScreen); // Size of structure devModeScreen.dmPelsWidth = Instance->width; // Selected width devModeScreen.dmPelsHeight = Instance->height; // Selected height devModeScreen.dmBitsPerPel = Instance->bits; // Selected bits per pixel devModeScreen.dmFields= DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT; ChangeDisplaySettings(&devModeScreen,CDS_FULLSCREEN)