summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-24 21:13:36 +0000
committerrubidium <rubidium@openttd.org>2009-11-24 21:13:36 +0000
commit8d6e323ef80fcb49c4fc8417564d1e2ef7797a73 (patch)
treefdd555748c6ddc5afd2181becd1006e6c8375ced /src/town_gui.cpp
parent3f0e1c9091bc13f82bcab6874f35d62f46987de5 (diff)
downloadopenttd-8d6e323ef80fcb49c4fc8417564d1e2ef7797a73.tar.xz
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 8ea2a3839..cbf033115 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -296,8 +296,6 @@ static void ShowTownAuthorityWindow(uint town)
/** Widget numbers of the town view window. */
enum TownViewWidgets {
TVW_CAPTION,
- TVW_VIEWPORTPANEL,
- TVW_VIEWPORTINSET,
TVW_VIEWPORT,
TVW_INFOPANEL,
TVW_CENTERVIEW,
@@ -525,8 +523,8 @@ static const NWidgetPart _nested_town_game_view_widgets[] = {
NWidget(WWT_CAPTION, COLOUR_BROWN, TVW_CAPTION), SetDataTip(STR_TOWN_VIEW_TOWN_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
EndContainer(),
- NWidget(WWT_PANEL, COLOUR_BROWN, TVW_VIEWPORTPANEL),
- NWidget(WWT_INSET, COLOUR_BROWN, TVW_VIEWPORTINSET), SetPadding(2, 2, 2, 2),
+ NWidget(WWT_PANEL, COLOUR_BROWN),
+ NWidget(WWT_INSET, COLOUR_BROWN), SetPadding(2, 2, 2, 2),
NWidget(NWID_VIEWPORT, INVALID_COLOUR, TVW_VIEWPORT), SetMinimalSize(254, 86), SetFill(1, 0), SetResize(1, 1), SetPadding(1, 1, 1, 1),
EndContainer(),
EndContainer(),
@@ -555,8 +553,8 @@ static const NWidgetPart _nested_town_editor_view_widgets[] = {
NWidget(WWT_PUSHTXTBTN, COLOUR_BROWN, TVW_CHANGENAME), SetMinimalSize(76, 14), SetDataTip(STR_BUTTON_RENAME, STR_TOWN_VIEW_RENAME_TOOLTIP),
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
EndContainer(),
- NWidget(WWT_PANEL, COLOUR_BROWN, TVW_VIEWPORTPANEL),
- NWidget(WWT_INSET, COLOUR_BROWN, TVW_VIEWPORTINSET), SetPadding(2, 2, 2, 2),
+ NWidget(WWT_PANEL, COLOUR_BROWN),
+ NWidget(WWT_INSET, COLOUR_BROWN), SetPadding(2, 2, 2, 2),
NWidget(NWID_VIEWPORT, INVALID_COLOUR, TVW_VIEWPORT), SetMinimalSize(254, 86), SetFill(1, 1), SetResize(1, 1), SetPadding(1, 1, 1, 1),
EndContainer(),
EndContainer(),