diff options
author | tron <tron@openttd.org> | 2005-07-27 19:22:38 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-27 19:22:38 +0000 |
commit | 9aa4893e66bc81a589b58bc08e0373212072299e (patch) | |
tree | a870ac7c944b92964c616675d5f385365c5d568a /win32.c | |
parent | a1557fa270432477b5a0457162110f77ea9df90f (diff) | |
download | openttd-9aa4893e66bc81a589b58bc08e0373212072299e.tar.xz |
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) { |