summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-10 19:24:14 +0000
committerDarkvater <darkvater@openttd.org>2006-11-10 19:24:14 +0000
commitd50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (patch)
treec1fc1f90d309d87f532278a729d8ba806cc319fd /dock_gui.c
parent0d9f80839f80edf41bd8ed75806b7901a553785a (diff)
downloadopenttd-d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b.tar.xz
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dock_gui.c b/dock_gui.c
index a58fe29fa..97a1a9d4d 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -205,8 +205,8 @@ static const Widget _build_docks_toolb_widgets[] = {
};
static const WindowDesc _build_docks_toolbar_desc = {
- 640-158, 22, 158, 36,
- WC_BUILD_TOOLBAR,0,
+ 0, 22, 158, 36,
+ WC_BUILD_TOOLBAR, 0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
_build_docks_toolb_widgets,
BuildDocksToolbWndProc
@@ -279,8 +279,8 @@ static const Widget _build_dock_station_widgets[] = {
};
static const WindowDesc _build_dock_station_desc = {
- -1, -1, 148, 75,
- WC_BUILD_STATION,WC_BUILD_TOOLBAR,
+ WDP_AUTO, WDP_AUTO, 148, 75,
+ WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_build_dock_station_widgets,
BuildDockStationWndProc
@@ -348,8 +348,8 @@ static const Widget _build_docks_depot_widgets[] = {
};
static const WindowDesc _build_docks_depot_desc = {
- -1, -1, 204, 86,
- WC_BUILD_DEPOT,WC_BUILD_TOOLBAR,
+ WDP_AUTO, WDP_AUTO, 204, 86,
+ WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_build_docks_depot_widgets,
BuildDocksDepotWndProc