Win32: Fix a bug in fullscreen. Consolidate the fullscreen code into one function. 99% of the code is the same anyway.

This commit is contained in:
The Dax committed 2014-07-16 23:58:22 -04:00
1 parent 8da08ea686
commit 023eb30b3e
3 files changed
+28 -58

No files matched your search

+1 -4
View File
@@ -336,10 +336,7 @@ bool WindowsHost::CreateDesktopShortcut(std::string argumentPath, std::string ga
}
void WindowsHost::GoFullscreen(bool viewFullscreen) {
if (viewFullscreen)
MainWindow::SwitchToFullscreen(mainWindow_);
else
MainWindow::SwitchToWindowed(mainWindow_);
MainWindow::ToggleFullscreen(mainWindow_, viewFullscreen);
}
void WindowsHost::ToggleDebugConsoleVisibility() {