summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-03-24 00:42:35 +0000
committerDarkvater <Darkvater@openttd.org>2006-03-24 00:42:35 +0000
commitfb48c3b4aa98540b03ef64410184547da70ea97c (patch)
treef10f7be93e3ce5d8a676824b0bec3535d8c3dfe6 /openttd.c
parent41f4c473dafd4cd1982d76cfb7b702426bb6067f (diff)
downloadopenttd-fb48c3b4aa98540b03ef64410184547da70ea97c.tar.xz
(svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw it again when it enters. Added both for WIN32 and SDL. Since Win95 has troubles with TrackMouseEvent(), this function was just simply rewritten which was the easiest. Based on a patch by DmitryKo.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index bc928779f..15b20e140 100644
--- a/openttd.c
+++ b/openttd.c
@@ -450,6 +450,7 @@ int ttd_main(int argc, char* argv[])
// initialize the ingame console
IConsoleInit();
+ _cursor.in_window = true;
InitializeGUI();
IConsoleCmdExec("exec scripts/autoexec.scr 0");