aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/bg.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-11 23:10:12 +1000
committerPaul Gilbert2012-05-17 20:42:23 +1000
commit41692ef48ab9cb5b38d80e580316186e9c76cec5 (patch)
treec02fe2efac411d9a8423cf78d8cd165aa6f10bfc /engines/tinsel/bg.cpp
parentc6810c174e06aa85fc58808f916c6e9cd1d989ea (diff)
downloadscummvm-rg350-41692ef48ab9cb5b38d80e580316186e9c76cec5.tar.gz
scummvm-rg350-41692ef48ab9cb5b38d80e580316186e9c76cec5.tar.bz2
scummvm-rg350-41692ef48ab9cb5b38d80e580316186e9c76cec5.zip
TINSEL: Refactored Tinsel engine to use the Common coroutine scheduler
Diffstat (limited to 'engines/tinsel/bg.cpp')
-rw-r--r--engines/tinsel/bg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tinsel/bg.cpp b/engines/tinsel/bg.cpp
index 72ba05f0b9..a3e21a8227 100644
--- a/engines/tinsel/bg.cpp
+++ b/engines/tinsel/bg.cpp
@@ -255,17 +255,17 @@ void StartupBackground(CORO_PARAM, SCNHANDLE hFilm) {
g_BGspeed = ONE_SECOND / FROM_LE_32(pfilm->frate);
// Start display process for each reel in the film
- g_scheduler->createProcess(PID_REEL, BGmainProcess, &pfilm->reels[0], sizeof(FREEL));
+ CoroScheduler.createProcess(PID_REEL, BGmainProcess, &pfilm->reels[0], sizeof(FREEL));
if (TinselV0) {
for (uint i = 1; i < FROM_LE_32(pfilm->numreels); ++i)
- g_scheduler->createProcess(PID_REEL, BGotherProcess, &pfilm->reels[i], sizeof(FREEL));
+ CoroScheduler.createProcess(PID_REEL, BGotherProcess, &pfilm->reels[i], sizeof(FREEL));
}
if (g_pBG[0] == NULL)
ControlStartOff();
- if (TinselV2 && (coroParam != nullContext))
+ if (TinselV2 && (coroParam != Common::nullContext))
CORO_GIVE_WAY;
CORO_END_CODE;