diff options
author | Max Horn | 2003-04-28 18:35:28 +0000 |
---|---|---|
committer | Max Horn | 2003-04-28 18:35:28 +0000 |
commit | 99e6ac9a3ba8dc882363104afb9e8753829d25f1 (patch) | |
tree | b8ea6c9aa677af421a71091c1577a4e83be7a218 /scumm/scummvm.cpp | |
parent | c9f80db201bcecbd7a2464cae92755550b0c6f48 (diff) | |
download | scummvm-rg350-99e6ac9a3ba8dc882363104afb9e8753829d25f1.tar.gz scummvm-rg350-99e6ac9a3ba8dc882363104afb9e8753829d25f1.tar.bz2 scummvm-rg350-99e6ac9a3ba8dc882363104afb9e8753829d25f1.zip |
fix loom mouse position quirks (even simplified the code :-)
svn-id: r7187
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r-- | scumm/scummvm.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 447f88642c..093e22cfb6 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1362,21 +1362,13 @@ void Scumm::processKbd() { else _virtual_mouse_y = mouse.y; - if (!(_features & GF_AFTER_V3)) - _virtual_mouse_y += virtscr[0].topline; - else - _virtual_mouse_y -= 16; + _virtual_mouse_y -= virtscr[0].topline; if (_virtual_mouse_y < 0) _virtual_mouse_y = -1; - if (_features & GF_AFTER_V3) { - if (_virtual_mouse_y >= virtscr[0].height + virtscr[0].topline) - _virtual_mouse_y = -1; - } else { - if (_virtual_mouse_y >= virtscr[0].height) - _virtual_mouse_y = -1; - } + if (_virtual_mouse_y >= virtscr[0].height) + _virtual_mouse_y = -1; if (!_lastKeyHit) return; |