summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 19:01:26 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 19:01:26 +0000
commit99b51aa2351d61138faf715764c036c21829dde6 (patch)
tree48e316652b7197423d8e327cc12fd246261e2d53 /src/window.cpp
parentc36d613b9b3ee12ef1a72d490721d15c19ea8ed5 (diff)
downloadopenttd-99b51aa2351d61138faf715764c036c21829dde6.tar.xz
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 7fe896993..cd2dcfc6e 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -22,8 +22,7 @@
#include "table/sprites.h"
-/** delta between mouse cursor and upper left corner of dragged window */
-static Point _drag_delta;
+static Point _drag_delta; //< delta between mouse cursor and upper left corner of dragged window
static Window _windows[MAX_NUMBER_OF_WINDOWS];
@@ -1047,6 +1046,9 @@ Window *FindWindowFromPt(int x, int y)
return NULL;
}
+/**
+ * (re)initialize the windowing system
+ */
void InitWindowSystem()
{
IConsoleClose();
@@ -1057,6 +1059,9 @@ void InitWindowSystem()
_no_scroll = 0;
}
+/**
+ * Close down the windowing system
+ */
void UnInitWindowSystem()
{
Window **wz;
@@ -1075,6 +1080,9 @@ restart_search:
assert(_last_z_window == _z_windows);
}
+/**
+ * Reset the windowing system, by means of shutting it down followed by re-initialization
+ */
void ResetWindowSystem()
{
UnInitWindowSystem();