summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-27 19:25:50 +0000
committertron <tron@openttd.org>2005-07-27 19:25:50 +0000
commitc43653b565d8a9c98558dc8b407577e80d341ff0 (patch)
tree10e28201b278115a06fb684d41487e35708e14f9
parent286f8726d5453ecb05c16a29e0e652210e04bda9 (diff)
downloadopenttd-c43653b565d8a9c98558dc8b407577e80d341ff0.tar.xz
(svn r2726) Fix last commit
-rw-r--r--video/win32_v.c2
-rw-r--r--win32.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/win32_v.c b/video/win32_v.c
index d4e1ff1fa..a4fffd0c0 100644
--- a/video/win32_v.c
+++ b/video/win32_v.c
@@ -21,7 +21,6 @@ static struct {
HPALETTE gdi_palette;
int width,height;
int width_org, height_org;
- bool cursor_visible;
bool switch_driver;
bool fullscreen;
bool double_size;
@@ -632,7 +631,6 @@ static void FindResolutions(void)
static const char *Win32GdiStart(const char * const *parm)
{
memset(&_wnd, 0, sizeof(_wnd));
- _wnd.cursor_visible = true;
RegisterWndClass();
diff --git a/win32.c b/win32.c
index e99490e9d..e4e7cc52e 100644
--- a/win32.c
+++ b/win32.c
@@ -40,6 +40,8 @@ static bool _has_console;
#endif
+static bool cursor_visible = true;
+
bool MyShowCursor(bool show)
{
if (_wnd.cursor_visible == show) return show;