You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Repaired mistyped of 'threshold' on several files.
This commit is contained in:
@@ -2713,10 +2713,10 @@ void TextServerFallback::shaped_text_overrun_trim_to_width(RID p_shaped_line, fl
|
||||
width -= sd_glyphs[i].advance * sd_glyphs[i].repeat;
|
||||
|
||||
if (sd_glyphs[i].count > 0) {
|
||||
bool above_min_char_treshold = (i >= ell_min_characters);
|
||||
bool above_min_char_threshold = (i >= ell_min_characters);
|
||||
|
||||
if (width + (((above_min_char_treshold && add_ellipsis) || enforce_ellipsis) ? ellipsis_width : 0) <= p_width) {
|
||||
if (cut_per_word && above_min_char_treshold) {
|
||||
if (width + (((above_min_char_threshold && add_ellipsis) || enforce_ellipsis) ? ellipsis_width : 0) <= p_width) {
|
||||
if (cut_per_word && above_min_char_threshold) {
|
||||
if ((sd_glyphs[i].flags & GRAPHEME_IS_BREAK_SOFT) == GRAPHEME_IS_BREAK_SOFT) {
|
||||
last_valid_cut = i;
|
||||
found = true;
|
||||
@@ -2728,7 +2728,7 @@ void TextServerFallback::shaped_text_overrun_trim_to_width(RID p_shaped_line, fl
|
||||
if (found) {
|
||||
trim_pos = last_valid_cut;
|
||||
|
||||
if (add_ellipsis && (above_min_char_treshold || enforce_ellipsis) && width - ellipsis_width <= p_width) {
|
||||
if (add_ellipsis && (above_min_char_threshold || enforce_ellipsis) && width - ellipsis_width <= p_width) {
|
||||
ellipsis_pos = trim_pos;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user