005
14.07.2003, 19:00 Uhr
Oliver
S2-Pixelgeneral
|
Wies Flo erklärt hat also so:
C++: |
DEVMODE dmScreenSettings; memset(&dmScreenSettings,0,sizeof(dmScreenSettings)); dmScreenSettings.dmSize = sizeof(dmScreenSettings); dmScreenSettings.dmPelsWidth = 1024; dmScreenSettings.dmPelsHeight = 768; dmScreenSettings.dmBitsPerPel = 32; dmScreenSettings.dmFields = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT|DM_DISPLAYFLAGS; dmScreenSettings.dmDisplayFrequency=85; if (ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL) { MessageBox(NULL,"The Requested Fullscreen Mode Is Not Supported by Your Videocard", "ERROR", MB_OK|MB_ICONSTOP); MessageBox(NULL,"Program Will Now Close.", "ERROR", MB_OK|MB_ICONSTOP); return 0; }
|
-- Demokratie ist die Diktatur der Mehrheit.
www.siedler25.org/ ( Siedler2 - Remake ) |