Fixed gui loop
svn-id: r3807
This commit is contained in:
parent
f5741df25c
commit
2a97cf0dde
2 changed files with 16 additions and 10 deletions
|
@ -1072,7 +1072,7 @@ void Scumm::launch()
|
||||||
|
|
||||||
setupSound();
|
setupSound();
|
||||||
|
|
||||||
runScript(1,0,0,&_bootParam);
|
// runScript(1,0,0,&_bootParam);
|
||||||
|
|
||||||
// _scummTimer = 0;
|
// _scummTimer = 0;
|
||||||
|
|
||||||
|
|
8
sdl.cpp
8
sdl.cpp
|
@ -953,11 +953,14 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
scumm->launch();
|
scumm->launch();
|
||||||
|
|
||||||
|
_system.last_time = SDL_GetTicks();
|
||||||
|
|
||||||
|
scumm->runScript(1,0,0,&scumm->_bootParam);
|
||||||
|
|
||||||
// scumm->scummMain(argc, argv); // Todo: need to change that as well
|
// scumm->scummMain(argc, argv); // Todo: need to change that as well
|
||||||
|
|
||||||
gui.init(scumm); /* Reinit GUI after loading a game */
|
gui.init(scumm); /* Reinit GUI after loading a game */
|
||||||
|
|
||||||
_system.last_time = SDL_GetTicks();
|
|
||||||
|
|
||||||
scumm->mainRun();
|
scumm->mainRun();
|
||||||
|
|
||||||
|
@ -1982,6 +1985,8 @@ void Scale_2xSaI (uint8 *srcPtr, uint32 srcPitch, uint8 * /* deltaPtr */,
|
||||||
/********* ScummVM call back functions **********/
|
/********* ScummVM call back functions **********/
|
||||||
|
|
||||||
int OSystem::waitTick(int delta)
|
int OSystem::waitTick(int delta)
|
||||||
|
{
|
||||||
|
do
|
||||||
{
|
{
|
||||||
updateScreen(scumm);
|
updateScreen(scumm);
|
||||||
new_time = SDL_GetTicks();
|
new_time = SDL_GetTicks();
|
||||||
|
@ -1991,6 +1996,7 @@ int OSystem::waitTick(int delta)
|
||||||
gui.loop();
|
gui.loop();
|
||||||
delta = 5;
|
delta = 5;
|
||||||
}
|
}
|
||||||
|
}while(gui._active);
|
||||||
|
|
||||||
return(delta);
|
return(delta);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue