use SDL_Delay to sleep

This commit is contained in:
Glenn Maynard
2003-02-14 06:31:09 +00:00
parent e83979439f
commit 6ca905ef9d
4 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -21,6 +21,7 @@
#include "PrefsManager.h"
#include "RageDisplay.h"
#include "GameConstantsAndTypes.h"
#include "SDL_utils.h"
#include "RageDisplayInternal.h"
@@ -190,7 +191,7 @@ void Sprite::DrawPrimitives()
return;
if( m_pTexture && m_pTexture->IsAMovie() && m_pTexture->IsPlaying() )
::Sleep( PREFSMAN->m_iMovieDecodeMS ); // let the movie decode a frame
SDL_Delay( PREFSMAN->m_iMovieDecodeMS ); // let the movie decode a frame
// use m_temp_* variables to draw the object
RectF quadVerticies;