|
@@ -1179,7 +1179,7 @@ int RichTextLabel::_draw_line(ItemFrame *p_frame, int p_line, const Vector2 &p_o
|
|
|
dot_ul_started = false;
|
|
|
float y_off = TS->shaped_text_get_underline_position(rid);
|
|
|
float underline_width = TS->shaped_text_get_underline_thickness(rid) * theme_cache.base_scale;
|
|
|
- draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, underline_width * 2);
|
|
|
+ draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, MAX(2.0, underline_width * 2));
|
|
|
}
|
|
|
if (_find_strikethrough(it)) {
|
|
|
if (!st_started) {
|
|
@@ -1341,7 +1341,7 @@ int RichTextLabel::_draw_line(ItemFrame *p_frame, int p_line, const Vector2 &p_o
|
|
|
dot_ul_started = false;
|
|
|
float y_off = TS->shaped_text_get_underline_position(rid);
|
|
|
float underline_width = TS->shaped_text_get_underline_thickness(rid) * theme_cache.base_scale;
|
|
|
- draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, underline_width * 2);
|
|
|
+ draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, MAX(2.0, underline_width * 2));
|
|
|
}
|
|
|
if (st_started) {
|
|
|
st_started = false;
|
|
@@ -1363,7 +1363,7 @@ int RichTextLabel::_draw_line(ItemFrame *p_frame, int p_line, const Vector2 &p_o
|
|
|
dot_ul_started = false;
|
|
|
float y_off = TS->shaped_text_get_underline_position(rid);
|
|
|
float underline_width = TS->shaped_text_get_underline_thickness(rid) * theme_cache.base_scale;
|
|
|
- draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, underline_width * 2);
|
|
|
+ draw_dashed_line(dot_ul_start + Vector2(0, y_off), p_ofs + Vector2(off.x, off.y + y_off), dot_ul_color, underline_width, MAX(2.0, underline_width * 2));
|
|
|
}
|
|
|
if (st_started) {
|
|
|
st_started = false;
|