UI: use two dot ellipses

Use less space for sign used when we don't have enough.
This commit is contained in:
Campbell Barton
2018-06-28 10:45:39 +02:00
parent 597122d72b
commit d5a8c0c414

View File

@@ -1033,8 +1033,8 @@ float UI_text_clip_middle_ex(
strwidth = BLF_width(fstyle->uifont_id, str, max_len);
if ((okwidth > 0.0f) && (strwidth > okwidth)) {
/* utf8 ellipsis '...', some compilers complain */
const char sep[] = {0xe2, 0x80, 0xa6, 0x0};
/* utf8 ellipsis '..', some compilers complain */
const char sep[] = {0xe2, 0x80, 0xA5, 0x0};
const int sep_len = sizeof(sep) - 1;
const float sep_strwidth = BLF_width(fstyle->uifont_id, sep, sep_len + 1);
float parts_strwidth;