Fixed few UI bugs in titlebarless windows

This commit is contained in:
pelya
2017-03-22 23:33:03 +02:00
parent 7c16f1417f
commit c27c828eaf
2 changed files with 12 additions and 12 deletions
+2
View File
@@ -24,6 +24,7 @@
#include "sortlist_type.h"
#include "stringfilter_type.h"
#include "string_func.h"
#include "settings_type.h"
#include "core/geometry_func.hpp"
#include "hotkeys.h"
#include "transparency.h"
@@ -274,6 +275,7 @@ struct SignListWindow : Window, SignList {
}
case WID_SIL_CAPTION:
if (!_settings_client.gui.windows_titlebars) break;
SetDParamMaxValue(0, Sign::GetPoolSize(), 3);
*size = GetStringBoundingBox(STR_SIGN_LIST_CAPTION);
size->height += padding.height;