summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-08-09 10:22:51 +0000
committerfrosch <frosch@openttd.org>2015-08-09 10:22:51 +0000
commitbdf090b406e87ff2d0a3f3c5b6dc92b4c232dc3c (patch)
tree506aca9a4bc47228fa9bef8eca2b64fa43d98595 /src/settings_gui.cpp
parent0982762c2278a3c89297d4f763f2b65e4a22c908 (diff)
downloadopenttd-bdf090b406e87ff2d0a3f3c5b6dc92b4c232dc3c.tar.xz
(svn r27366) -Fix [FS#6358]: Clickareas in settings tree were misaligned when the filter warning was displayed, if the setting height was defined by the icons instead of the font.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 19949671f..0652d1bd8 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -1943,7 +1943,7 @@ struct GameSettingsWindow : Window {
{
switch (widget) {
case WID_GS_OPTIONSPANEL: {
- int top_pos = r.top + SETTINGTREE_TOP_OFFSET + 1 + this->warn_lines * FONT_HEIGHT_NORMAL;
+ int top_pos = r.top + SETTINGTREE_TOP_OFFSET + 1 + this->warn_lines * SETTING_HEIGHT;
uint last_row = this->vscroll->GetPosition() + this->vscroll->GetCapacity() - this->warn_lines;
int next_row = GetSettingsTree().Draw(settings_ptr, r.left + SETTINGTREE_LEFT_OFFSET, r.right - SETTINGTREE_RIGHT_OFFSET, top_pos,
this->vscroll->GetPosition(), last_row, this->last_clicked);