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 | 286f8726d5453ecb05c16a29e0e652210e04bda9 (patch) | |
tree | a870ac7c944b92964c616675d5f385365c5d568a /video | |
parent | 6f74bbaeec503b01a317d9e6f52cb545f6835c3a (diff) | |
download | openttd-286f8726d5453ecb05c16a29e0e652210e04bda9.tar.xz |
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
Diffstat (limited to 'video')
-rw-r--r-- | video/win32_v.c | 12 | ||||
-rw-r--r-- | video/win32_v.h | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/video/win32_v.c b/video/win32_v.c index 6710459ef..d4e1ff1fa 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -7,6 +7,7 @@ #include "../macros.h" #include "../network.h" #include "../variables.h" +#include "../win32.h" #include "../window.h" #include "win32_v.h" #include <windows.h> @@ -65,17 +66,6 @@ static void UpdatePalette(HDC dc, uint start, uint count) SetDIBColorTable(dc, start, count, rgb); } -bool MyShowCursor(bool show) -{ - if (_wnd.cursor_visible == show) - return show; - - _wnd.cursor_visible = show; - ShowCursor(show); - - return !show; -} - typedef struct { byte vk_from; byte vk_count; diff --git a/video/win32_v.h b/video/win32_v.h index ccc9aed94..c3b23a61a 100644 --- a/video/win32_v.h +++ b/video/win32_v.h @@ -5,8 +5,6 @@ #include "../hal.h" -bool MyShowCursor(bool show); - extern const HalVideoDriver _win32_video_driver; #endif |