From ea1adebe31673917c957f455d3588b6486142128 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 24 Mar 2006 00:42:35 +0000 Subject: (svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw it again when it enters. Added both for WIN32 and SDL. Since Win95 has troubles with TrackMouseEvent(), this function was just simply rewritten which was the easiest. Based on a patch by DmitryKo. --- gfx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gfx.c') 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; -- cgit v1.2.3-70-g09d2