diff options
author | Vladimir Menshakov | 2011-06-13 14:41:28 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:43 +0200 |
commit | f46a889e6df85a9046a7468ce7acc0c4c34bf1e4 (patch) | |
tree | 1c2c8356548673476952cffab97433077a21bf50 /engines | |
parent | cf6b88b174d7f81a38beaa5b8420b71649e0747a (diff) | |
download | scummvm-rg350-f46a889e6df85a9046a7468ce7acc0c4c34bf1e4.tar.gz scummvm-rg350-f46a889e6df85a9046a7468ce7acc0c4c34bf1e4.tar.bz2 scummvm-rg350-f46a889e6df85a9046a7468ce7acc0c4c34bf1e4.zip |
DREAMWEB: fixed invalid buffer len
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 8b0d710301..3af867552d 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -249,7 +249,7 @@ void DreamWebEngine::keyPressed(uint16 ascii) { ascii = (ascii - 'a') + 'A'; debug(1, "key pressed = %04x", ascii); uint8* keybuf = _context.data.ptr(5715, 16); //fixme: some hardcoded offsets are not added as consts - uint16 in = (_context.data.word(dreamgen::kBufferin) + 1) % 0x0f; + uint16 in = (_context.data.word(dreamgen::kBufferin) + 1) & 0x0f; uint16 out = _context.data.word(dreamgen::kBufferout); if (in == out) { warning("keyboard buffer is full"); @@ -286,10 +286,10 @@ void DreamWebEngine::setGraphicsMode() { } void DreamWebEngine::fadeDos() { + _context.ds = _context.es = _context.data.word(dreamgen::kBuffers); return; //fixme later waitForVSync(); //processEvents will be called from vsync - _context.ds = _context.es = _context.data.word(dreamgen::kBuffers); uint8 *dst = _context.es.ptr(dreamgen::kStartpal, 768); getPalette(dst, 0, 64); for(int fade = 0; fade < 64; ++fade) { |