Skip to content

Commit

Permalink
Resolution: Do not switch resolutions when in 3D (only refreshrates)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritsch committed Jan 19, 2017
1 parent fb8a030 commit b6cc33e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/guilib/Resolution.cpp
Expand Up @@ -224,11 +224,13 @@ RESOLUTION CResolutionUtils::FindClosestResolution(float fps, int width, bool is
// evaluate all higher modes and evaluate them
// concerning dimension and refreshrate weight
// skip lower resolutions
// don't change resolutions when 3D is wanted
if ((width < orig.iScreenWidth) || // orig res large enough
(info.iScreenWidth < orig.iScreenWidth) || // new res is smaller
(info.iScreenHeight < orig.iScreenHeight) || // new height would be smaller
(info.dwFlags & D3DPRESENTFLAG_MODEMASK) != (curr.dwFlags & D3DPRESENTFLAG_MODEMASK) || // don't switch to interlaced modes
(info.iScreen != curr.iScreen)) // skip not current displays
(info.iScreen != curr.iScreen) || // skip not current displays
is3D) // skip res changing when doing 3D
{
continue;
}
Expand Down

0 comments on commit b6cc33e

Please sign in to comment.