Advertisement

Problems with Textures and full screen

Started by July 24, 2005 11:36 AM
-1 comments, last by BlackRyder 19 years, 1 month ago
Hello, I have some problems with textures when i am switching to Fullscreen mode the textures are scrambled and some of them go over eachother but when i am in window mode with the same resulotion of my screen (1024X768X32) is is like a full screen but the textures are ok. i took the source code of switching to full screen from here i am including them here: BOOL Application::changeToFullScreen(int width,int height,int bpp) { DEVMODE dmScreenSettings; // Holds the display settings. memset(&dmScreenSettings,0,sizeof(dmScreenSettings)); dmScreenSettings.dmSize = sizeof(dmScreenSettings); dmScreenSettings.dmPelsWidth = width; dmScreenSettings.dmPelsHeight = height; dmScreenSettings.dmBitsPerPel = bpp; dmScreenSettings.dmFields=DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT; //trying to change to full screen if(ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL) { return FALSE; } return TRUE; } i am sending the function 1024,768,32 Thanks in advance BlackRyder

This topic is closed to new replies.

Advertisement