From afe56a4aebd46d77b4c4cfbfda0bdb8533f0e318 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 10 Sep 2003 12:43:54 +0000 Subject: added refCon parameter to timer class svn-id: r10156 --- scumm/smush/smush_player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scumm/smush') diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index fb99c8a668..1646ea5872 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -195,8 +195,8 @@ static StringResource *getStrings(const char *file, const char *directory, bool SmushPlayer *player; -void SmushPlayer::timerCallback(void *ptr) { - Scumm *scumm = (Scumm *)ptr; +void SmushPlayer::timerCallback(void *refCon) { + Scumm *scumm = (Scumm *)refCon; if (!scumm->_smushPlay) return; @@ -255,7 +255,7 @@ void SmushPlayer::init() { _smixer->_silentMixer = _scumm->_silentDigitalImuse; _scumm->_smushPlay = true; _dst = _scumm->virtscr[0].screenPtr + _scumm->virtscr[0].xstart; - _scumm->_timer->installProcedure(&timerCallback, _speed); + _scumm->_timer->installProcedure(&timerCallback, _speed, _scumm); _alreadyInit = false; } -- cgit v1.2.3