From 80eb6e4f5ea2b25864c94251f14e9b09170e72cf Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 20 May 2006 07:31:03 +0000 Subject: Fixed cursor drawing in the classic theme. svn-id: r22538 --- backends/sdl/graphics.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp index deeadb7ea3..afd28fddb0 100644 --- a/backends/sdl/graphics.cpp +++ b/backends/sdl/graphics.cpp @@ -1487,8 +1487,13 @@ void OSystem_SDL::drawMouse() { dst.y = _mouseCurState.y - _mouseHotspotY; } - dst.w = _mouseCurState.w; - dst.h = _mouseCurState.h; + if (_overlayVisible) { + dst.w = _mouseCurState.hW; + dst.h = _mouseCurState.hH; + } else { + dst.w = _mouseCurState.w; + dst.h = _mouseCurState.h; + } // Note that addDirtyRect() will perform any necessary clipping -- cgit v1.2.3