aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/play.cpp
diff options
context:
space:
mode:
authorMax Horn2008-07-24 08:59:17 +0000
committerMax Horn2008-07-24 08:59:17 +0000
commit69dac1d4f22f9a63a5a9030d4405ba071e5e8b89 (patch)
tree82f7bd95c3a03b3d4e363e26eecdc36fe3e8b600 /engines/tinsel/play.cpp
parent627e0c277426b02153b79c82616ae7f351ad5bc3 (diff)
downloadscummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.gz
scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.bz2
scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.zip
Moved scheduler / process managment code into a new class Scheduler
svn-id: r33259
Diffstat (limited to 'engines/tinsel/play.cpp')
-rw-r--r--engines/tinsel/play.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tinsel/play.cpp b/engines/tinsel/play.cpp
index 9b355a6da9..7c4f6be7e6 100644
--- a/engines/tinsel/play.cpp
+++ b/engines/tinsel/play.cpp
@@ -361,9 +361,9 @@ void PlayReel(CORO_PARAM, const PPINIT *ppi) {
/**
* Run all animations that comprise the play film.
*/
-static void playProcess(CORO_PARAM) {
+static void playProcess(CORO_PARAM, const void *param) {
// get the stuff copied to process when it was created
- PPINIT *ppi = (PPINIT *)ProcessGetParamsSelf();
+ PPINIT *ppi = (PPINIT *)param;
PlayReel(coroParam, ppi);
}
@@ -417,7 +417,7 @@ void playFilm(SCNHANDLE film, int x, int y, int actorid, bool splay, int sfact,
newestFilm(film, &pfilm->reels[i]);
ppi.column = i;
- ProcessCreate(PID_REEL, playProcess, &ppi, sizeof(ppi));
+ g_scheduler->createProcess(PID_REEL, playProcess, &ppi, sizeof(ppi));
}
}
@@ -459,7 +459,7 @@ void playFilmc(CORO_PARAM, SCNHANDLE film, int x, int y, int actorid, bool splay
newestFilm(film, &pfilm->reels[i]);
_ctx->ppi.column = i;
- ProcessCreate(PID_REEL, playProcess, &_ctx->ppi, sizeof(PPINIT));
+ g_scheduler->createProcess(PID_REEL, playProcess, &_ctx->ppi, sizeof(PPINIT));
}
newestFilm(film, &pfilm->reels[0]);
@@ -501,7 +501,7 @@ void playThisReel(SCNHANDLE film, short reelnum, short z, int x, int y) {
newestFilm(film, &pfilm->reels[reelnum]);
// Start display process for the reel
- ProcessCreate(PID_REEL, playProcess, &ppi, sizeof(ppi));
+ g_scheduler->createProcess(PID_REEL, playProcess, &ppi, sizeof(ppi));
}
} // end of namespace Tinsel