From fc977d926e8ee4770ec74fe594dadd0a65dd19b7 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 26 Jun 2018 18:47:15 +0200 Subject: [PATCH] Force the display 0 on windows only with the native 640x480 resolution --- src/event.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/event.cxx b/src/event.cxx index 96d370e..c763047 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -1729,9 +1729,10 @@ CEvent::SetFullScreen (bool bFullScreen, double prevScale) g_bFullScreen = bFullScreen; - int displayIndex = 0; -#ifndef _WIN32 - displayIndex = SDL_GetWindowDisplayIndex (g_window); + int displayIndex = SDL_GetWindowDisplayIndex (g_window); +#ifdef _WIN32 + if (g_zoom == 2) + displayIndex = 0; #endif /* _WIN32 */ if (g_bFullScreen && g_zoom == 2)