[Scummvm-cvs-logs] SF.net SVN: scummvm:[52472] scummvm/trunk/backends/platform/sdl/graphics. cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Aug 31 15:05:15 CEST 2010
Revision: 52472
http://scummvm.svn.sourceforge.net/scummvm/?rev=52472&view=rev
Author: m_kiewitz
Date: 2010-08-31 13:05:15 +0000 (Tue, 31 Aug 2010)
Log Message:
-----------
SCI: still set game cursor, when mouse outside
of ScummVM window. Just don't change actual mouse position
Modified Paths:
--------------
scummvm/trunk/backends/platform/sdl/graphics.cpp
Modified: scummvm/trunk/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/graphics.cpp 2010-08-31 11:51:43 UTC (rev 52471)
+++ scummvm/trunk/backends/platform/sdl/graphics.cpp 2010-08-31 13:05:15 UTC (rev 52472)
@@ -1395,9 +1395,11 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list