summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-04-03 12:38:18 +0000
committeralberth <alberth@openttd.org>2009-04-03 12:38:18 +0000
commit27a13ec67dbd0c104d0a7c04b31da5c134458d98 (patch)
tree7aff3ed372ec9804837ba68cff545426be12b987
parent9af4047eee81909131c6e7034e81a00baa75e111 (diff)
downloadopenttd-27a13ec67dbd0c104d0a7c04b31da5c134458d98.tar.xz
(svn r15928) -Codechange: Moving statusbar widget numbers outside StatusBarWindow
-rw-r--r--src/statusbar_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 066003fcc..c4f5773db 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -63,6 +63,12 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width)
return x > 0;
}
+enum StatusbarWidget {
+ SBW_LEFT, ///< left part of the statusbar; date is shown there
+ SBW_MIDDLE, ///< middle part; current news or company name or *** SAVING *** or *** PAUSED ***
+ SBW_RIGHT, ///< right part; bank balance
+};
+
struct StatusBarWindow : Window {
bool saving;
int ticker_scroll;
@@ -76,12 +82,6 @@ struct StatusBarWindow : Window {
COUNTER_STEP = 2, ///< this is subtracted from active counters every tick
};
- enum StatusbarWidget {
- SBW_LEFT, ///< left part of the statusbar; date is shown there
- SBW_MIDDLE, ///< middle part; current news or company name or *** SAVING *** or *** PAUSED ***
- SBW_RIGHT, ///< right part; bank balance
- };
-
StatusBarWindow(const WindowDesc *desc) : Window(desc)
{
CLRBITS(this->flags4, WF_WHITE_BORDER_MASK);