Some cleanup (yay for whomever had the brilliant idea to let SVN work over HTTPS and hence through proxies&firewalls :)

svn-id: r28877
This commit is contained in:
Max Horn 2007-09-08 11:15:27 +00:00
parent 89bbbe53ac
commit 0cccbb29d6
26 changed files with 98 additions and 95 deletions

View file

@ -249,14 +249,15 @@ void ScummEngine::processInput() {
if (_mouse.y > _screenHeight-1)
_mouse.y = _screenHeight-1;
_virtualMouse.x = _mouse.x + virtscr[0].xstart;
_virtualMouse.y = _mouse.y - virtscr[0].topline;
VirtScreen *vs = &_virtscr[kMainVirtScreen];
_virtualMouse.x = _mouse.x + vs->xstart;
_virtualMouse.y = _mouse.y - vs->topline;
if (_game.version >= 7)
_virtualMouse.y += _screenTop;
if (_virtualMouse.y < 0)
_virtualMouse.y = -1;
if (_virtualMouse.y >= virtscr[0].h)
if (_virtualMouse.y >= vs->h)
_virtualMouse.y = -1;
//