summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-09-22 19:14:06 +0000
committeralberth <alberth@openttd.org>2012-09-22 19:14:06 +0000
commit224babe8c4931233bab6a8adc0760e87a2dfdad3 (patch)
treebe743685c22642ff5d51c3700587b6ced5567813 /src
parent4b59344b0d0e446b7c17c9d2e92e670f1a97c6f4 (diff)
downloadopenttd-224babe8c4931233bab6a8adc0760e87a2dfdad3.tar.xz
(svn r24548) -Add: Extra group line in the group gui, if possible (Juanjo).
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 83f9c0179..d150723fb 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -342,11 +342,8 @@ public:
max_icon_height = max(max_icon_height, GetSpriteSize(this->GetWidget<NWidgetCore>(WID_GL_DELETE_GROUP)->widget_data).height);
max_icon_height = max(max_icon_height, GetSpriteSize(this->GetWidget<NWidgetCore>(WID_GL_REPLACE_PROTECTION)->widget_data).height);
- /* ... plus the statusbar below the vehicle list */
- if (max_icon_height > FONT_HEIGHT_NORMAL) max_icon_height -= FONT_HEIGHT_NORMAL;
-
- /* The size must be a multiple of tiny_step_height for the resizing to work */
- size->height -= this->tiny_step_height * CeilDiv(max_icon_height, this->tiny_step_height);
+ /* Get a multiple of tiny_step_height of that amount */
+ size->height = Ceil(size->height - max_icon_height, tiny_step_height);
break;
}