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:
parent
a68625dafd
commit
0654c3939a
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user