Ver código fonte

Fix for fullscreen game always starting in native resolution

Dydzio 2 anos atrás
pai
commit
42db24b4b2
1 arquivos alterados com 1 adições e 1 exclusões
  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);
 }