1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

Use display index from settings

This commit is contained in:
Alexander Wilms 2023-09-26 23:05:48 +02:00
parent e2eeec96a9
commit ecc7648ef8

View File

@ -22,7 +22,7 @@ FramerateManager::FramerateManager(int targetFrameRate)
{
if(vsyncEnabled)
{
static int display_in_use = 0;
static int display_in_use = settings["video"]["displayIndex"].Integer();
SDL_DisplayMode mode;
SDL_GetCurrentDisplayMode(display_in_use, &mode);
int displayRefreshRate = mode.refresh_rate;