Skip to content

Commit

Permalink
Resolution: User current resolution - desktop might be something else
Browse files Browse the repository at this point in the history
  • Loading branch information
fritsch committed May 10, 2018
1 parent 319f866 commit eded065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xbmc/windowing/Resolution.cpp
Expand Up @@ -126,14 +126,14 @@ void CResolutionUtils::FindResolutionFromWhitelist(float fps, int width, bool is
}
}

CLog::Log(LOGDEBUG, "No double refresh rate whitelisted resolution matched, trying desktop resolution");
CLog::Log(LOGDEBUG, "No double refresh rate whitelisted resolution matched, trying current resolution");

for (const auto &mode : indexList)
{
auto i = CDisplaySettings::GetInstance().GetResFromString(mode.asString());
const RESOLUTION_INFO info = CServiceBroker::GetWinSystem()->GetGfxContext().GetResInfo(i);

const RESOLUTION_INFO desktop_info = CServiceBroker::GetWinSystem()->GetGfxContext().GetResInfo(RES_DESKTOP);
const RESOLUTION_INFO desktop_info = CDisplaySettings::GetInstance().GetCurrentResolution();

// allow resolutions that are desktop resolution but have the correct refresh rate
if (info.iScreenWidth == desktop_info.iWidth &&
Expand All @@ -147,14 +147,14 @@ void CResolutionUtils::FindResolutionFromWhitelist(float fps, int width, bool is
}
}

CLog::Log(LOGDEBUG, "No larger whitelisted resolution matched, trying desktop resolution with double refreshrate");
CLog::Log(LOGDEBUG, "No larger whitelisted resolution matched, trying current resolution with double refreshrate");

for (const auto &mode : indexList)
{
auto i = CDisplaySettings::GetInstance().GetResFromString(mode.asString());
const RESOLUTION_INFO info = CServiceBroker::GetWinSystem()->GetGfxContext().GetResInfo(i);

const RESOLUTION_INFO desktop_info = CServiceBroker::GetWinSystem()->GetGfxContext().GetResInfo(RES_DESKTOP);
const RESOLUTION_INFO desktop_info = CDisplaySettings::GetInstance().GetCurrentResolution();

// allow resolutions that are desktop resolution but have double the refresh rate
if (info.iScreenWidth == desktop_info.iWidth &&
Expand Down

0 comments on commit eded065

Please sign in to comment.