From 97c184f8f8265cf59b24ab3081a032c7162afcb5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 13 Aug 2008 06:05:01 +0000 Subject: (svn r14063) -Codechange: replace some "magic" constants with enumified constants. --- src/main_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main_gui.cpp') diff --git a/src/main_gui.cpp b/src/main_gui.cpp index fa89c91d3..218705527 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -145,7 +145,7 @@ void ShowRenameWaypointWindow(const Waypoint *wp) _rename_id = id; _rename_what = 1; SetDParam(0, id); - ShowQueryString(STR_WAYPOINT_RAW, STR_EDIT_WAYPOINT_NAME, 30, 180, NULL, CS_ALPHANUMERAL); + ShowQueryString(STR_WAYPOINT_RAW, STR_EDIT_WAYPOINT_NAME, MAX_LENGTH_WAYPOINT_NAME_BYTES, MAX_LENGTH_WAYPOINT_NAME_PIXELS, NULL, CS_ALPHANUMERAL); } -- cgit v1.2.3-54-g00ecf