From 32e2f9e8f3ed728755187bf2a3d04542deec7857 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 29 Dec 2007 14:11:12 +0000 Subject: Fixed warning when DISABLE_SCALERS is defined. svn-id: r30074 --- backends/platform/sdl/graphics.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index b3e5a0cd65..7061f4a036 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -1407,7 +1407,10 @@ void OSystem_SDL::blitCursor() { _mouseCurState.vHotY = _mouseCurState.hotY; } +#ifndef DISABLE_SCALERS int rH1 = rH; // store original to pass to aspect-correction function later +#endif + if (_adjustAspectRatio && _cursorTargetScale == 1) { rH = real2Aspect(rH - 1) + 1; _mouseCurState.rHotY = real2Aspect(_mouseCurState.rHotY); -- cgit v1.2.3