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

Force main display (0) for fullscreen mode

It seems that it doesn't work fine to set the fullscreen mode on the
second display (at least with NVidia) and Windows.
This commit is contained in:
Mathieu Schroeter 2018-05-31 22:27:34 +02:00
parent a68625dafd
commit 0654c3939a

View File

@ -1667,7 +1667,10 @@ CEvent::SetFullScreen (bool bFullScreen)
g_bFullScreen = bFullScreen;
int displayIndex = SDL_GetWindowDisplayIndex (g_window);
int displayIndex = 0;
#ifndef _WIN32
displayIndex = SDL_GetWindowDisplayIndex (g_window);
#endif /* _WIN32 */
if (g_bFullScreen)
{