Prevent rendering and multiple WM_SIZE events when switching between windowed and fullscreen

May help #6295 but also it may not, I can't test it as I don't have that GPU.

Also gets rid of some outdated code.
This commit is contained in:
Henrik Rydgard committed 2014-06-29 21:08:20 +02:00
1 parent 498136bbf8
commit 56cee3c00e
5 files changed
+42 -42

No files matched your search

+2 -2
View File
@@ -335,9 +335,9 @@ bool WindowsHost::CreateDesktopShortcut(std::string argumentPath, std::string ga
void WindowsHost::GoFullscreen(bool viewFullscreen) {
if (viewFullscreen)
MainWindow::_ViewFullScreen(MainWindow::GetHWND());
MainWindow::SwitchToFullscreen(MainWindow::GetHWND());
else
MainWindow::_ViewNormal(MainWindow::GetHWND());
MainWindow::SwitchToWindowed(MainWindow::GetHWND());
}
void WindowsHost::ToggleDebugConsoleVisibility() {