From 1516459319bc3bf2633921f1cb7359b9af74d9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=28=C2=B4=E3=83=BB=CF=89=E3=83=BB=EF=BD=80=29?= Date: Mon, 2 Nov 2020 20:23:52 +0900 Subject: [PATCH] FIX: Delete save button is thin on some themes --- gui/savegame_frame.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/savegame_frame.cc b/gui/savegame_frame.cc index 086acd885f..80507a551c 100644 --- a/gui/savegame_frame.cc +++ b/gui/savegame_frame.cc @@ -31,7 +31,7 @@ class del_button_t : public button_t scr_size get_min_size() const OVERRIDE { - return scr_size(proportional_string_width("X")+ gui_theme_t::gui_button_text_offset.w + gui_theme_t::gui_button_text_offset_right.x, D_BUTTON_HEIGHT); + return scr_size(max(D_BUTTON_HEIGHT,proportional_string_width("X")+ gui_theme_t::gui_button_text_offset.w + gui_theme_t::gui_button_text_offset_right.x), D_BUTTON_HEIGHT); } };