diff options
author | Gregory Montoir | 2003-10-20 20:12:59 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-20 20:12:59 +0000 |
commit | ff5fde47ea11fb03007fc3a1f597d3202d5cd25e (patch) | |
tree | c3c4dbfac3c6f7965fdceef255712f2442c19c58 /queen/display.cpp | |
parent | 89a9a35a0ba7dde96d858da8b9f4f64794aedb58 (diff) | |
download | scummvm-rg350-ff5fde47ea11fb03007fc3a1f597d3202d5cd25e.tar.gz scummvm-rg350-ff5fde47ea11fb03007fc3a1f597d3202d5cd25e.tar.bz2 scummvm-rg350-ff5fde47ea11fb03007fc3a1f597d3202d5cd25e.zip |
scrolling timing (copy/paste from SkyEngine)
svn-id: r10919
Diffstat (limited to 'queen/display.cpp')
-rw-r--r-- | queen/display.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/queen/display.cpp b/queen/display.cpp index f11efd7fa5..a08ed60ee2 100644 --- a/queen/display.cpp +++ b/queen/display.cpp @@ -212,7 +212,7 @@ void Display::palSet(const uint8 *pal, int start, int end, bool updateScreen) { _system->set_palette(tempPal + start * 4, start, end - start + 1); if (updateScreen) { _system->update_screen(); - _system->delay_msecs(20); + waitForTimer(); } } @@ -785,6 +785,25 @@ void Display::horizontalScroll(int16 scroll) { } +void Display::handleTimer() { + + _gotTick = true; +} + + +void Display::waitForTimer() { + + _gotTick = false; + while (!_gotTick) { + OSystem::Event event; + + _system->delay_msecs(10); + while (_system->poll_event(&event)); + } +} + + + const uint8 TextRenderer::FONT[] = { 0xF8, 0xB0, 0xB0, 0x80, 0xB0, 0xB0, 0xC0, 0x00, 0xF8, 0xB0, 0xB0, 0x80, 0xB0, 0xB0, 0xC0, 0x00, 0xF8, 0xB0, 0xB0, 0x80, |