1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Force the display 0 on windows only with the native 640x480 resolution

This commit is contained in:
Mathieu Schroeter 2018-06-26 18:47:15 +02:00
parent ab39906c5e
commit fc977d926e

View File

@ -1729,9 +1729,10 @@ CEvent::SetFullScreen (bool bFullScreen, double prevScale)
g_bFullScreen = bFullScreen; g_bFullScreen = bFullScreen;
int displayIndex = 0; int displayIndex = SDL_GetWindowDisplayIndex (g_window);
#ifndef _WIN32 #ifdef _WIN32
displayIndex = SDL_GetWindowDisplayIndex (g_window); if (g_zoom == 2)
displayIndex = 0;
#endif /* _WIN32 */ #endif /* _WIN32 */
if (g_bFullScreen && g_zoom == 2) if (g_bFullScreen && g_zoom == 2)