Fix #783732 : freeze on Pocket PC

svn-id: r9550
This commit is contained in:
Nicolas Bacca 2003-08-06 10:06:19 +00:00
parent de277d746c
commit 7e2ff83e70
2 changed files with 10 additions and 1 deletions

View File

@ -365,6 +365,15 @@ void SkyScreen::waitForTimer(void) {
}
}
void SkyScreen::waitForSequence(void) {
while (_seqInfo.running) {
OSystem::Event event;
_system->delay_msecs(20);
while (_system->poll_event(&event));
}
}
void SkyScreen::handleTimer(void) {
_gotTick = true;

View File

@ -65,7 +65,7 @@ public:
void startSequenceItem(uint16 itemNum);
void stopSequence(void);
bool sequenceRunning(void) { return _seqInfo.running; };
void waitForSequence(void) { while (_seqInfo.running) _system->delay_msecs(20); };
void waitForSequence(void);
uint32 seqFramesLeft(void) { return _seqInfo.framesLeft; };
uint8 *giveCurrent(void) { return _currentScreen; };
void halvePalette(void);