aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIWindow.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/GUIWindow.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/GUIWindow.cpp')
-rw-r--r--guilib/GUIWindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/guilib/GUIWindow.cpp b/guilib/GUIWindow.cpp
index 30c7a90b7f..f68d72a034 100644
--- a/guilib/GUIWindow.cpp
+++ b/guilib/GUIWindow.cpp
@@ -36,6 +36,7 @@
#include "utils/GUIInfoManager.h"
#include "utils/log.h"
#include "utils/SingleLock.h"
+#include "utils/TimeUtils.h"
#include "ButtonTranslator.h"
#include "XMLUtils.h"
#include "MouseStat.h"
@@ -328,7 +329,7 @@ void CGUIWindow::Render()
if (m_hasCamera)
g_graphicsContext.SetCameraPosition(m_camera);
- DWORD currentTime = timeGetTime();
+ unsigned int currentTime = CTimeUtils::GetFrameTime();
// render our window animation - returns false if it needs to stop rendering
if (!RenderAnimation(currentTime))
return;
@@ -750,7 +751,7 @@ bool CGUIWindow::IsAnimating(ANIMATION_TYPE animType)
return CGUIControlGroup::IsAnimating(animType);
}
-bool CGUIWindow::RenderAnimation(DWORD time)
+bool CGUIWindow::RenderAnimation(unsigned int time)
{
g_graphicsContext.ResetWindowTransform();
if (m_animationsEnabled)