summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-09 09:29:27 +0000
committerrubidium <rubidium@openttd.org>2008-05-09 09:29:27 +0000
commitf4387004025efb3860a2934ed6d82a7e6f1cd716 (patch)
tree3a614e86500df9bd4d6ff37cbc44cca603933d88 /src/window_gui.h
parent486172e07f92f4ac4a9602cf47568d0e1d3cf9bb (diff)
downloadopenttd-f4387004025efb3860a2934ed6d82a7e6f1cd716.tar.xz
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index c9c1b91bb..e9cb2d066 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -117,10 +117,10 @@ enum WindowEventCodes {
WE_DOUBLE_CLICK, ///< Left mouse button double click
WE_RCLICK, ///< Right mouse button click
WE_MOUSEOVER,
- WE_MOUSELOOP,
WE_MOUSEWHEEL,
- WE_TICK, ///< Regularly occurring event (about once every 20 seconds orso, 10 days) for slowly changing content (typically list sorting)
- WE_4, ///< Regularly occurring event for updating continuously changing window content (other than view ports), or timer expiring
+ WE_MOUSELOOP, ///< Event for each mouse event in the game (at least once every game tick)
+ WE_TICK, ///< Regularly occurring event (every game tick)
+ WE_100_TICKS, ///< Regularly occurring event (every 100 game ticks, approximatelly 3 seconds)
WE_TIMEOUT,
WE_PLACE_OBJ,
WE_ABORT_PLACE_OBJ,
@@ -504,7 +504,6 @@ enum WindowFlags {
/* window.cpp */
void CallWindowEventNP(Window *w, int event);
-void CallWindowTickEvent();
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
Window *FindWindowFromPt(int x, int y);