summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-30 15:32:31 +0000
committeralberth <alberth@openttd.org>2010-12-30 15:32:31 +0000
commit661e13a86af45f88bc0fd7d8c045f66ceddd041e (patch)
treed3665937edc2ba2aefd1f4dfd4372852cf991d1c /src/window.cpp
parentcedb07bba3c885b5812244f02bdf5cee3e9cc05f (diff)
downloadopenttd-661e13a86af45f88bc0fd7d8c045f66ceddd041e.tar.xz
(svn r21667) -Codechange: Introduce _thd.Reset().
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 3e601d212..4dca8403a 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1366,10 +1366,7 @@ void ResetWindowSystem()
{
UnInitWindowSystem();
InitWindowSystem();
- _thd.pos.x = 0;
- _thd.pos.y = 0;
- _thd.new_pos.x = 0;
- _thd.new_pos.y = 0;
+ _thd.Reset();
}
static void DecreaseWindowCounters()