summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx.c b/gfx.c
index 8c7a94feb..3dab6b132 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1654,6 +1654,9 @@ void DrawMouseCursor(void)
int w;
int h;
+ /* Redraw mouse cursor but only when it's inside the window */
+ if (!_cursor.in_window) return;
+
// Don't draw the mouse cursor if it's already drawn
if (_cursor.visible) {
if (!_cursor.dirty) return;