aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUITexture.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/GUITexture.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/GUITexture.cpp')
-rw-r--r--guilib/GUITexture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GUITexture.cpp b/guilib/GUITexture.cpp
index dd1204c408..7b7f079360 100644
--- a/guilib/GUITexture.cpp
+++ b/guilib/GUITexture.cpp
@@ -79,7 +79,7 @@ CGUITextureBase::CGUITextureBase(float posX, float posY, float width, float heig
// anim gifs
m_currentFrame = 0;
- m_frameCounter = (DWORD) -1;
+ m_frameCounter = (unsigned int) -1;
m_currentLoop = 0;
m_allocateDynamically = false;
@@ -118,7 +118,7 @@ CGUITextureBase::CGUITextureBase(const CGUITextureBase &right)
m_largeOrientation = 0;
m_currentFrame = 0;
- m_frameCounter = (DWORD) -1;
+ m_frameCounter = (unsigned int) -1;
m_currentLoop = 0;
m_isAllocated = NO;
@@ -471,7 +471,7 @@ void CGUITextureBase::DynamicResourceAlloc(bool allocateDynamically)
void CGUITextureBase::UpdateAnimFrame()
{
m_frameCounter++;
- DWORD delay = m_texture.m_delays[m_currentFrame];
+ unsigned int delay = m_texture.m_delays[m_currentFrame];
if (!delay) delay = 100;
if (m_frameCounter * 40 >= delay)
{