aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.h
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-03 02:40:01 +0100
committerMartin Kiewitz2016-02-03 02:40:01 +0100
commit34117170f2955e854a93925a652af37575361b44 (patch)
treef63d6592f41195be8999ce8101c3e0e15d8cb6d0 /engines/agi/agi.h
parent778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac (diff)
downloadscummvm-rg350-34117170f2955e854a93925a652af37575361b44.tar.gz
scummvm-rg350-34117170f2955e854a93925a652af37575361b44.tar.bz2
scummvm-rg350-34117170f2955e854a93925a652af37575361b44.zip
AGI: Change cycle delay handling, seems to fix GR
Removed pollTimer() Renamed pause() to wait() Doing 10 msec delays instead of at least 50 msec per EventProcess Seems to fix weird Gold Rush ingame timer issue?! bug #4147
Diffstat (limited to 'engines/agi/agi.h')
-rw-r--r--engines/agi/agi.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h
index 4e65c57890..5d14850509 100644
--- a/engines/agi/agi.h
+++ b/engines/agi/agi.h
@@ -655,7 +655,6 @@ public:
return false;
}
- virtual void pollTimer() = 0;
virtual int getKeypress() = 0;
virtual bool isKeypress() = 0;
virtual void clearKeyQueue() = 0;
@@ -735,8 +734,6 @@ public:
void adjustPosToGameScreen(int16 &x, int16 &y);
private:
- uint32 _lastTick;
-
int _keyQueue[KEY_QUEUE_SIZE];
int _keyQueueStart;
int _keyQueueEnd;
@@ -788,7 +785,7 @@ public:
int16 p4, int16 p5, int16 p6, int16 p7);
void releaseImageStack();
- void pause(uint32 msec);
+ void wait(uint32 msec, bool busy = false);
Console *_console;
GUI::Debugger *getDebugger() { return _console; }
@@ -800,7 +797,6 @@ public:
int agiUnloadResource(int16 resourceType, int16 resourceNr);
void agiUnloadResources();
- virtual void pollTimer();
virtual int getKeypress();
virtual bool isKeypress();
virtual void clearKeyQueue();
@@ -818,7 +814,7 @@ public:
public:
void decrypt(uint8 *mem, int len);
void releaseSprites();
- uint16 processAGIEvents(bool doDelay = true);
+ uint16 processAGIEvents();
int viewPictures();
int runGame();
int getAppDir(char *appDir, unsigned int size);