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:
parent
89bbbe53ac
commit
0cccbb29d6
26 changed files with 98 additions and 95 deletions
|
@ -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;
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue