diff options
author | yexo <yexo@openttd.org> | 2009-03-23 00:08:59 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-23 00:08:59 +0000 |
commit | b61a681f025dcfbd9d2db4c15603784aaff357c4 (patch) | |
tree | 60e988cefe32bdc39002c90f8ef4ff7d70d526e1 /src/widget.cpp | |
parent | 4012549c5ea5c9192189b6cc29000a9634c38798 (diff) | |
download | openttd-b61a681f025dcfbd9d2db4c15603784aaff357c4.tar.xz |
(svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index bfa436c43..06e9e30e9 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -510,24 +510,6 @@ void Window::DrawWidgets() const } break; } - - case WWT_DROPDOWNIN: { - assert(r.bottom - r.top == 11); // ensure consistent size - - StringID str = wi->data; - if (_dynlang.text_dir == TD_LTR) { - DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->colour, FR_LOWERED | FR_DARKENED); - DrawFrameRect(r.right - 11, r.top + 1, r.right - 1, r.bottom - 1, wi->colour, clicked ? FR_LOWERED : FR_NONE); - DrawString(r.right - (clicked ? 8 : 9), r.right, r.top + (clicked ? 2 : 1), STR_0225, TC_BLACK); - if (str != STR_NULL) DrawString(r.left + 2, r.right - 13, r.top + 2, str, TC_BLACK); - } else { - DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->colour, FR_LOWERED | FR_DARKENED); - DrawFrameRect(r.left + 1, r.top + 1, r.left + 11, r.bottom - 1, wi->colour, clicked ? FR_LOWERED : FR_NONE); - DrawString(r.left + 1, r.left + (clicked ? 10 : 11), r.top + (clicked ? 2 : 1), STR_0225, TC_BLACK); - if (str != STR_NULL) DrawString(r.left + 14, r.right - 2, r.top + 2, str, TC_BLACK); - } - break; - } } if (this->IsWidgetDisabled(i)) { @@ -1242,7 +1224,6 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, break; case WWT_DROPDOWN: - case WWT_DROPDOWNIN: this->SetFill(false, false); this->min_y = 12; break; |