Permalink
Browse files

videorefclock: ask graphics context for refresh rate

  • Loading branch information...
1 parent 06966a5 commit c84c9f7d8e8dbab944e3eef484b4aba90ef7b6b9 @FernetMenta committed Aug 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);

0 comments on commit c84c9f7

Please sign in to comment.