Mercurial > hg > openttd
changeset 2207:cd136170a9ed draft
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
author | tron <tron@openttd.org> |
---|---|
date | Wed, 27 Jul 2005 19:22:38 +0000 |
parents | 3bbd7bf3ed12 |
children | e4d18bc42152 |
files | video/win32_v.c video/win32_v.h win32.c win32.h |
diffstat | 4 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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;
--- 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
--- a/win32.c +++ b/win32.c @@ -40,6 +40,17 @@ #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) {