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:
parent
e2eeec96a9
commit
ecc7648ef8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user