summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-27 19:22:38 +0000
committertron <tron@openttd.org>2005-07-27 19:22:38 +0000
commit286f8726d5453ecb05c16a29e0e652210e04bda9 (patch)
treea870ac7c944b92964c616675d5f385365c5d568a /win32.c
parent6f74bbaeec503b01a317d9e6f52cb545f6835c3a (diff)
downloadopenttd-286f8726d5453ecb05c16a29e0e652210e04bda9.tar.xz
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c11
1 files changed, 11 insertions, 0 deletions
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)
{