tiny useless cleaning about the recently modified del_tags
This commit is contained in:
parent
badabe330f
commit
cbb32c8be1
2 changed files with 2 additions and 2 deletions
|
@ -747,7 +747,7 @@ std::string make_text_ellipsis(const std::string &text, int font_size, int max_w
|
|||
{
|
||||
static const std::string ellipsis = "...";
|
||||
|
||||
if(line_width(with_tags ? text : font::del_tags(text), font_size) <= max_width)
|
||||
if(line_width(with_tags ? text : del_tags(text), font_size) <= max_width)
|
||||
return text;
|
||||
if(line_width(ellipsis, font_size) > max_width)
|
||||
return "";
|
||||
|
|
|
@ -99,7 +99,7 @@ SDL_Rect line_size(const std::string& line, int font_size, int style=TTF_STYLE_N
|
|||
|
||||
///
|
||||
/// If the text excedes the specified max width, end it with an ellipsis (...)
|
||||
/// The del_tags can probably always be set to false
|
||||
/// The with_tags can probably always be set to false
|
||||
///
|
||||
std::string make_text_ellipsis(const std::string& text, int font_size, int max_width, bool with_tags = true);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue