Windows: Handle fullscreen message consistently.

This handles it the same way as SDL, etc. so that the new button on the
main screen works again.
This commit is contained in:
Unknown W. Brackets committed 2021-01-09 14:17:41 -08:00
1 parent e00f894340
commit 43a13f7ec6
4 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -330,7 +330,7 @@ void System_SendMessage(const char *command, const char *parameter) {
} else if (!strcmp(command, "bgImage_browse")) {
MainWindow::BrowseBackground();
} else if (!strcmp(command, "toggle_fullscreen")) {
bool flag = !g_Config.bFullScreen;
bool flag = !MainWindow::IsFullscreen();
if (strcmp(parameter, "0") == 0) {
flag = false;
} else if (strcmp(parameter, "1") == 0) {