From 286f8726d5453ecb05c16a29e0e652210e04bda9 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 27 Jul 2005 19:22:38 +0000 Subject: (svn r2725) Move MyShowCursor() back into win32.c, it fits better there --- win32.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'win32.c') diff --git a/win32.c b/win32.c index d93b800e2..e99490e9d 100644 --- a/win32.c +++ b/win32.c @@ -40,6 +40,17 @@ static bool _has_console; #endif +bool MyShowCursor(bool show) +{ + if (_wnd.cursor_visible == show) return show; + + _wnd.cursor_visible = show; + ShowCursor(show); + + return !show; +} + + // Helper function needed by dynamically loading SDL bool LoadLibraryList(Function proc[], const char* dll) { -- cgit v1.2.3-70-g09d2