Explorar el Código

Fix for fullscreen game always starting in native resolution

Dydzio hace 2 años
padre
commit
42db24b4b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/renderSDL/ScreenHandler.cpp

+ 1 - 1
client/renderSDL/ScreenHandler.cpp

@@ -476,7 +476,7 @@ void ScreenHandler::clearScreen()
 
 std::vector<Point> ScreenHandler::getSupportedResolutions() const
 {
-	int displayID = SDL_GetWindowDisplayIndex(mainWindow);
+	int displayID = getPreferredDisplayIndex();
 	return getSupportedResolutions(displayID);
 }