Skip to content

Commit

Permalink
DREAMWEB: Save registers in vsync, like in original sources
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Jun 25, 2011
1 parent b66ca60 commit 7745850
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -434,7 +434,23 @@ void DreamGenContext::doshake() {
}

void DreamGenContext::vsync() {
push(ax);
push(bx);
push(cx);
push(dx);
push(si);
push(di);
push(es);
push(ds);
engine->waitForVSync();
ds = pop();
es = pop();
di = pop();
si = pop();
dx = pop();
cx = pop();
bx = pop();
ax = pop();
}

void DreamGenContext::setmode() {
Expand Down

0 comments on commit 7745850

Please sign in to comment.