summaryrefslogtreecommitdiff
path: root/train_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 /train_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 'train_gui.c')
-rw-r--r--train_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/train_gui.c b/train_gui.c
index 5b06fee2d..323dd7bed 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -649,7 +649,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
}
static const WindowDesc _new_rail_vehicle_desc = {
- -1, -1, 228, 264,
+ WDP_AUTO, WDP_AUTO, 228, 264,
WC_BUILD_VEHICLE,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_new_rail_vehicle_widgets,
@@ -923,7 +923,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
}
static const WindowDesc _train_view_desc = {
- -1,-1, 250, 134,
+ WDP_AUTO, WDP_AUTO, 250, 134,
WC_VEHICLE_VIEW,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_train_view_widgets,
@@ -1200,7 +1200,7 @@ static const Widget _train_details_widgets[] = {
static const WindowDesc _train_details_desc = {
- -1,-1, 370, 164,
+ WDP_AUTO, WDP_AUTO, 370, 164,
WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_train_details_widgets,