1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 23:49:09 +00:00

(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int

This commit is contained in:
rubidium
2010-05-13 09:44:44 +00:00
parent 793b0f0736
commit 398418b8fa
52 changed files with 170 additions and 251 deletions

View File

@@ -175,14 +175,12 @@ enum CompanyValueWidgets {
struct BaseGraphWindow : Window {
protected:
enum {
GRAPH_MAX_DATASETS = 32,
GRAPH_AXIS_LINE_COLOUR = 215,
GRAPH_NUM_MONTHS = 24, ///< Number of months displayed in the graph.
static const int GRAPH_MAX_DATASETS = 32;
static const int GRAPH_AXIS_LINE_COLOUR = 215;
static const int GRAPH_NUM_MONTHS = 24; ///< Number of months displayed in the graph.
MIN_GRAPH_NUM_LINES_Y = 9, ///< Minimal number of horizontal lines to draw.
MIN_GRID_PIXEL_SIZE = 20, ///< Minimum distance between graph lines.
};
static const int MIN_GRAPH_NUM_LINES_Y = 9; ///< Minimal number of horizontal lines to draw.
static const int MIN_GRID_PIXEL_SIZE = 20; ///< Minimum distance between graph lines.
uint excluded_data; ///< bitmask of the datasets that shouldn't be displayed.
byte num_dataset;