mirror of
https://github.com/godotengine/godot
synced 2024-09-05 11:08:26 +00:00
Merge pull request #839 from grabiller/radfac#005
Implement Windows fullscreen mode without video mode change.
This commit is contained in:
commit
738eb2c1a8
|
@ -982,8 +982,11 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_
|
|||
DEVMODE current;
|
||||
memset(¤t,0,sizeof(current));
|
||||
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, ¤t);
|
||||
|
||||
WindowRect.right = current.dmPelsWidth;
|
||||
WindowRect.bottom = current.dmPelsHeight;
|
||||
|
||||
DEVMODE dmScreenSettings;
|
||||
/* DEVMODE dmScreenSettings;
|
||||
memset(&dmScreenSettings,0,sizeof(dmScreenSettings));
|
||||
dmScreenSettings.dmSize=sizeof(dmScreenSettings);
|
||||
dmScreenSettings.dmPelsWidth = video_mode.width;
|
||||
|
@ -995,7 +998,7 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_
|
|||
if (err!=DISP_CHANGE_SUCCESSFUL) {
|
||||
|
||||
video_mode.fullscreen=false;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
DWORD dwExStyle;
|
||||
|
|
Loading…
Reference in a new issue