aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/sdl/graphics.cpp9
1 files 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