diff options
author | Yotam Barnoy | 2010-06-09 14:15:51 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-06-09 14:15:51 +0000 |
commit | f770156dccff6ed5f1211cbe7676652897582ee9 (patch) | |
tree | a5d55dff30570f8760ec867a111fd46692ba85e5 /backends/platform/psp/osys_psp.h | |
parent | 015262a0ee77abcbd49d9ab40909daa77d303a81 (diff) | |
download | scummvm-rg350-f770156dccff6ed5f1211cbe7676652897582ee9.tar.gz scummvm-rg350-f770156dccff6ed5f1211cbe7676652897582ee9.tar.bz2 scummvm-rg350-f770156dccff6ed5f1211cbe7676652897582ee9.zip |
PSP: fixed missing frame issue with kyrandia and possibly other games by calling updateScreen() from pollEvent() once in a while
svn-id: r49541
Diffstat (limited to 'backends/platform/psp/osys_psp.h')
-rw-r--r-- | backends/platform/psp/osys_psp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h index a6c84ba39a..d8ec8fe824 100644 --- a/backends/platform/psp/osys_psp.h +++ b/backends/platform/psp/osys_psp.h @@ -50,6 +50,8 @@ private: Common::SaveFileManager *_savefile; Audio::MixerImpl *_mixer; Common::TimerManager *_timer; + bool _pendingUpdate; // save an update we couldn't perform + uint32 _pendingUpdateCounter; // prevent checking for pending update too often, in a cheap way // All needed sub-members Screen _screen; @@ -62,10 +64,10 @@ private: PspTimer _pspTimer; PspRtc _pspRtc; - void initSDL(); + void initSDL(); public: - OSystem_PSP() : _savefile(0), _mixer(0), _timer(0) {} + OSystem_PSP() : _savefile(0), _mixer(0), _timer(0), _pendingUpdate(false), _pendingUpdateCounter(0) {} ~OSystem_PSP(); static OSystem *instance(); |