mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-04 00:15:53 +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)
|
if(vsyncEnabled)
|
||||||
{
|
{
|
||||||
static int display_in_use = 0;
|
static int display_in_use = settings["video"]["displayIndex"].Integer();
|
||||||
SDL_DisplayMode mode;
|
SDL_DisplayMode mode;
|
||||||
SDL_GetCurrentDisplayMode(display_in_use, &mode);
|
SDL_GetCurrentDisplayMode(display_in_use, &mode);
|
||||||
int displayRefreshRate = mode.refresh_rate;
|
int displayRefreshRate = mode.refresh_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user