diff options
author | rubidium <rubidium@openttd.org> | 2009-11-24 21:13:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-24 21:13:36 +0000 |
commit | 8d6e323ef80fcb49c4fc8417564d1e2ef7797a73 (patch) | |
tree | fdd555748c6ddc5afd2181becd1006e6c8375ced /src/viewport_gui.cpp | |
parent | 3f0e1c9091bc13f82bcab6874f35d62f46987de5 (diff) | |
download | openttd-8d6e323ef80fcb49c4fc8417564d1e2ef7797a73.tar.xz |
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
Diffstat (limited to 'src/viewport_gui.cpp')
-rw-r--r-- | src/viewport_gui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/viewport_gui.cpp b/src/viewport_gui.cpp index 91772e1e0..bce23ac71 100644 --- a/src/viewport_gui.cpp +++ b/src/viewport_gui.cpp @@ -24,13 +24,11 @@ /** Widget numbers of the extra viewport window. */ enum ExtraViewportWindowWidgets { EVW_CAPTION, - EVW_BACKGROUND, EVW_VIEWPORT, EVW_ZOOMIN, EVW_ZOOMOUT, EVW_MAIN_TO_VIEW, EVW_VIEW_TO_MAIN, - EVW_SPACER, }; /* Extra ViewPort Window Stuff */ @@ -40,7 +38,7 @@ static const NWidgetPart _nested_extra_view_port_widgets[] = { NWidget(WWT_CAPTION, COLOUR_GREY, EVW_CAPTION), SetDataTip(STR_EXTRA_VIEW_PORT_TITLE, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS), NWidget(WWT_STICKYBOX, COLOUR_GREY), EndContainer(), - NWidget(WWT_PANEL, COLOUR_GREY, EVW_BACKGROUND), + NWidget(WWT_PANEL, COLOUR_GREY), NWidget(NWID_VIEWPORT, INVALID_COLOUR, EVW_VIEWPORT), SetPadding(2, 2, 2, 2), SetResize(1, 1), SetFill(1, 1), EndContainer(), NWidget(NWID_HORIZONTAL), @@ -54,7 +52,7 @@ static const NWidgetPart _nested_extra_view_port_widgets[] = { EndContainer(), EndContainer(), NWidget(NWID_HORIZONTAL), - NWidget(WWT_PANEL, COLOUR_GREY, EVW_SPACER), SetFill(1, 1), SetResize(1, 0), EndContainer(), + NWidget(WWT_PANEL, COLOUR_GREY), SetFill(1, 1), SetResize(1, 0), EndContainer(), NWidget(WWT_RESIZEBOX, COLOUR_GREY), EndContainer(), }; |