summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-24 18:05:55 +0000
committerrubidium <rubidium@openttd.org>2009-11-24 18:05:55 +0000
commit14300d309c01591b9dd2b4c8fb0180fec69bddb0 (patch)
tree27fa96cc5e58d694c671eeb6c5c23cce8a93bcf5 /src/waypoint_gui.cpp
parent91865c33da8df050165d8e692e22dde9048572ed (diff)
downloadopenttd-14300d309c01591b9dd2b4c8fb0180fec69bddb0.tar.xz
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index c25759aa0..e935113b3 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -26,9 +26,7 @@
/** Widget definitions for the waypoint window. */
enum WaypointWindowWidgets {
- WAYPVW_CLOSEBOX = 0,
WAYPVW_CAPTION,
- WAYPVW_STICKY,
WAYPVW_VIEWPORTPANEL,
WAYPVW_SPACER,
WAYPVW_VIEWPORT,
@@ -125,9 +123,9 @@ public:
static const NWidgetPart _nested_waypoint_view_widgets[] = {
NWidget(NWID_HORIZONTAL),
- NWidget(WWT_CLOSEBOX, COLOUR_GREY, WAYPVW_CLOSEBOX),
+ NWidget(WWT_CLOSEBOX, COLOUR_GREY),
NWidget(WWT_CAPTION, COLOUR_GREY, WAYPVW_CAPTION), SetDataTip(STR_WAYPOINT_VIEW_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
- NWidget(WWT_STICKYBOX, COLOUR_GREY, WAYPVW_STICKY),
+ NWidget(WWT_STICKYBOX, COLOUR_GREY),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_GREY, WAYPVW_VIEWPORTPANEL),
NWidget(WWT_INSET, COLOUR_GREY, WAYPVW_SPACER), SetPadding(2, 2, 2, 2),