diff options
author | Yotam Barnoy | 2010-05-24 11:41:45 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-05-24 11:41:45 +0000 |
commit | 55e29af78a52a13269d9905c6410e70f56b5920d (patch) | |
tree | 20b3c15c4b2d7b2390f48ef44f6975dfffac14de /backends/platform/psp/osys_psp.cpp | |
parent | cfbf1a8a673295a621ee618be86bb7c42c531a8f (diff) | |
download | scummvm-rg350-55e29af78a52a13269d9905c6410e70f56b5920d.tar.gz scummvm-rg350-55e29af78a52a13269d9905c6410e70f56b5920d.tar.bz2 scummvm-rg350-55e29af78a52a13269d9905c6410e70f56b5920d.zip |
PSP: switched to using slightly faster delay and getMillis
svn-id: r49179
Diffstat (limited to 'backends/platform/psp/osys_psp.cpp')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index d29196619b..ed7fb2d3cf 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -37,6 +37,7 @@ #include "backends/platform/psp/psppixelformat.h" #include "backends/platform/psp/osys_psp.h" #include "backends/platform/psp/powerman.h" +#include "backends/platform/psp/thread.h" #include "backends/saves/psp/psp-saves.h" #include "backends/timer/default/default-timer.h" @@ -298,17 +299,15 @@ bool OSystem_PSP::pollEvent(Common::Event &event) { return _inputHandler.getAllInputs(event); } - uint32 OSystem_PSP::getMillis() { - return SDL_GetTicks(); + return PspThread::getMillis(); } void OSystem_PSP::delayMillis(uint msecs) { - SDL_Delay(msecs); + PspThread::delayMillis(msecs); } void OSystem_PSP::setTimerCallback(TimerProc callback, int interval) { - //SDL_SetTimer(interval, (SDL_TimerCallback)callback); _pspTimer.setCallback((PspTimer::CallbackFunc)callback); _pspTimer.setIntervalMs(interval); _pspTimer.start(); |