Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

videorefclock: ask graphics context for refresh rate

  • Loading branch information...
commit c84c9f7d8e8dbab944e3eef484b4aba90ef7b6b9 1 parent 06966a5
@FernetMenta authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/video/VideoReferenceClock.cpp
View
3  xbmc/video/VideoReferenceClock.cpp
@@ -30,6 +30,7 @@
#include <sstream>
#include <X11/extensions/Xrandr.h>
#include "windowing/WindowingFactory.h"
+ #include "guilib/GraphicContext.h"
#define NVSETTINGSCMD "nvidia-settings -nt -q RefreshRate3"
#elif defined(TARGET_DARWIN_OSX)
#include <QuartzCore/CVDisplayLink.h>
@@ -1254,7 +1255,7 @@ bool CVideoReferenceClock::UpdateRefreshrate(bool Forced /*= false*/)
}
CSingleLock SingleLock(m_CritSection);
- m_RefreshRate = GetRandRRate();
+ m_RefreshRate = MathUtils::round_int(g_graphicsContext.GetFPS());
CLog::Log(LOGDEBUG, "CVideoReferenceClock: Detected refreshrate: %i hertz", (int)m_RefreshRate);
Please sign in to comment.
Something went wrong with that request. Please try again.