# HG changeset patch # User tron # Date 1122492158 0 # Node ID 40c928fbde8abb9212c3a8578c42cb93419a9f5a # Parent d266ec10c72e5d0f6cb5e047fecd9833e97b6c6c (svn r2725) Move MyShowCursor() back into win32.c, it fits better there diff -r d266ec10c72e -r 40c928fbde8a video/win32_v.c --- a/video/win32_v.c Wed Jul 27 10:11:45 2005 +0000 +++ b/video/win32_v.c Wed Jul 27 19:22:38 2005 +0000 @@ -7,6 +7,7 @@ #include "../macros.h" #include "../network.h" #include "../variables.h" +#include "../win32.h" #include "../window.h" #include "win32_v.h" #include @@ -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; diff -r d266ec10c72e -r 40c928fbde8a video/win32_v.h --- a/video/win32_v.h Wed Jul 27 10:11:45 2005 +0000 +++ b/video/win32_v.h Wed Jul 27 19:22:38 2005 +0000 @@ -5,8 +5,6 @@ #include "../hal.h" -bool MyShowCursor(bool show); - extern const HalVideoDriver _win32_video_driver; #endif diff -r d266ec10c72e -r 40c928fbde8a win32.c --- a/win32.c Wed Jul 27 10:11:45 2005 +0000 +++ b/win32.c Wed Jul 27 19:22:38 2005 +0000 @@ -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) { diff -r d266ec10c72e -r 40c928fbde8a win32.h --- a/win32.h Wed Jul 27 10:11:45 2005 +0000 +++ b/win32.h Wed Jul 27 19:22:38 2005 +0000 @@ -3,6 +3,8 @@ #ifndef WIN32_H #define WIN32_H +bool MyShowCursor(bool show); + typedef void (*Function)(int); bool LoadLibraryList(Function proc[], const char* dll);