SCI: still set game cursor, when mouse outside

of ScummVM window. Just don't change actual mouse position

svn-id: r52472
This commit is contained in:
Martin Kiewitz 2010-08-31 13:05:15 +00:00
parent 4ecb2b6047
commit c0b119feda

View file

@ -1395,9 +1395,11 @@ void OSystem_SDL::setMousePos(int x, int y) {
void OSystem_SDL::warpMouse(int x, int y) {
int y1 = y;
// Don't change mouse position, when mouse is outside of our window (in case of windowed mode)
if (!(SDL_GetAppState( ) & SDL_APPMOUSEFOCUS))
// Don't change actual mouse position, when mouse is outside of our window (in case of windowed mode)
if (!(SDL_GetAppState( ) & SDL_APPMOUSEFOCUS)) {
setMousePos(x, y); // but change game cursor position
return;
}
if (_videoMode.aspectRatioCorrection && !_overlayVisible)
y1 = real2Aspect(y);