diff options
author | Bertrand Augereau | 2011-08-25 08:03:27 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-08-25 08:12:27 +0200 |
commit | 50fdbd34b831243166df98262cadad089e4c292b (patch) | |
tree | 5cd295391a7cd57b2a88fb5195e42a6e1e7d013a /engines/dreamweb/print.cpp | |
parent | 24afa11b352ac4012e25426c3a3858e192fb1299 (diff) | |
download | scummvm-rg350-50fdbd34b831243166df98262cadad089e4c292b.tar.gz scummvm-rg350-50fdbd34b831243166df98262cadad089e4c292b.tar.bz2 scummvm-rg350-50fdbd34b831243166df98262cadad089e4c292b.zip |
DREAMWEB: 'waitframes' ported to C++
Diffstat (limited to 'engines/dreamweb/print.cpp')
-rw-r--r-- | engines/dreamweb/print.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/dreamweb/print.cpp b/engines/dreamweb/print.cpp index 26084c35d1..844ad97f29 100644 --- a/engines/dreamweb/print.cpp +++ b/engines/dreamweb/print.cpp @@ -112,10 +112,10 @@ uint8 DreamGenContext::printslow(const uint8 *string, uint16 x, uint16 y, uint8 printboth(charSet, &offset2, y, c1, c2); data.word(kCharshift) = 0; for (int i=0; i<2; ++i) { - waitframes(); - if (ax == 0) + uint16 mouseState = waitframes(); + if (mouseState == 0) continue; - if (ax != data.word(kOldbutton)) { + if (mouseState != data.word(kOldbutton)) { return 1; } } @@ -220,5 +220,14 @@ void DreamGenContext::kernchars() { cl = kernchars(al, ah, cl); } +uint16 DreamGenContext::waitframes() { + readmouse(); + showpointer(); + vsync(); + dumppointer(); + delpointer(); + return data.word(kMousebutton); +} + } /*namespace dreamgen */ |