aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIFont.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-09-23 10:03:22 +0000
committerjmarshallnz <jmarshallnz@svn>2009-09-23 10:03:22 +0000
commitc3018c6090df3c4cf3c5a96cc2310f931ef8f37f (patch)
treee22747627d63a591f15d9f87e15aa08cde10a563 /guilib/GUIFont.cpp
parent59629d6966e46a99fc8e41a05f5e460d984997a4 (diff)
changed: DWORD -> unsigned int for frame-based timings, and moved to using CTimeUtils::Update/GetFrameTime() for UI timing.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23109 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIFont.cpp')
-rw-r--r--guilib/GUIFont.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/guilib/GUIFont.cpp b/guilib/GUIFont.cpp
index d80e3ab39d..a73bfc6932 100644
--- a/guilib/GUIFont.cpp
+++ b/guilib/GUIFont.cpp
@@ -24,6 +24,7 @@
#include "GraphicContext.h"
#include "utils/SingleLock.h"
+#include "utils/TimeUtils.h"
#include "MathUtils.h"
#define ROUND(x) (float)(MathUtils::round_int(x))
@@ -34,7 +35,7 @@ float CScrollInfo::GetPixelsPerFrame()
if (0 == pixelSpeed)
return 0; // not scrolling
- DWORD currentTime = timeGetTime();
+ unsigned int currentTime = CTimeUtils::GetFrameTime();
float delta = m_lastFrameTime ? (float)(currentTime - m_lastFrameTime) : m_averageFrameTime;
if (delta > 100)
delta = 100; // assume a minimum of 10 fps