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:
parent
4ecb2b6047
commit
c0b119feda
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue