(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
This commit is contained in:
@@ -203,7 +203,7 @@ static const Widget _ship_details_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _ship_details_desc = {
|
||||
-1,-1, 405, 101,
|
||||
WDP_AUTO, WDP_AUTO, 405, 101,
|
||||
WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
|
||||
_ship_details_widgets,
|
||||
@@ -345,7 +345,7 @@ static const Widget _new_ship_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _new_ship_desc = {
|
||||
-1, -1, 255, 214,
|
||||
WDP_AUTO, WDP_AUTO, 255, 214,
|
||||
WC_BUILD_VEHICLE,0,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
||||
_new_ship_widgets,
|
||||
@@ -515,7 +515,7 @@ static const Widget _ship_view_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _ship_view_desc = {
|
||||
-1,-1, 250, 116,
|
||||
WDP_AUTO, WDP_AUTO, 250, 116,
|
||||
WC_VEHICLE_VIEW,0,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
||||
_ship_view_widgets,
|
||||
|
||||
Reference in New Issue
Block a user