guardar partida que vaig a pegar coses de la ia

This commit is contained in:
2025-06-17 13:31:30 +02:00
parent 9aaad2785f
commit d7e057b7bc

View File

@@ -531,12 +531,12 @@ void ServiceMenu::precalculateMenuWidths()
if (getGroupAlignment(sg) == GroupAlignment::LEFT)
{
size_t total_width = max_option_width + MIN_GAP_OPTION_VALUE_ + max_value_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
group_menu_widths_[group] = std::max((int)MIN_WIDTH_, (int)total_width);
group_menu_widths_[group] = std::max(static_cast<int>(MIN_WIDTH_), static_cast<int>(total_width));
}
else
{
size_t total_width = max_option_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
group_menu_widths_[group] = std::max((int)MIN_WIDTH_, (int)total_width);
group_menu_widths_[group] = std::max(static_cast<int>(MIN_WIDTH_), static_cast<int>(total_width));
}
}
}