Added braces for clarity.

svn-id: r18295
This commit is contained in:
Torbjörn Andersson 2005-05-29 18:07:46 +00:00
parent e9c71f3a98
commit 9ffe00b78d

View File

@ -1414,7 +1414,7 @@ void OSystem_SDL::toggleMouseGrab() {
void OSystem_SDL::undrawMouse() {
// When we switch bigger overlay off mouse jumps. Argh!
// this intended to prevent undrawing offscreen mouse
if (!_overlayVisible)
if (!_overlayVisible) {
if (_adjustAspectRatio) {
if (_mouseBackup.x > _screenWidth || aspect2Real(_mouseBackup.y) > _screenHeight)
return;
@ -1422,6 +1422,7 @@ void OSystem_SDL::undrawMouse() {
if (_mouseBackup.x > _screenWidth || _mouseBackup.y > _screenHeight)
return;
}
}
if (_mouseBackup.w) {
if (_adjustAspectRatio)