UI: use two dot ellipses
Use less space for sign used when we don't have enough.
This commit is contained in:
@@ -1033,8 +1033,8 @@ float UI_text_clip_middle_ex(
|
|||||||
strwidth = BLF_width(fstyle->uifont_id, str, max_len);
|
strwidth = BLF_width(fstyle->uifont_id, str, max_len);
|
||||||
|
|
||||||
if ((okwidth > 0.0f) && (strwidth > okwidth)) {
|
if ((okwidth > 0.0f) && (strwidth > okwidth)) {
|
||||||
/* utf8 ellipsis '...', some compilers complain */
|
/* utf8 ellipsis '..', some compilers complain */
|
||||||
const char sep[] = {0xe2, 0x80, 0xa6, 0x0};
|
const char sep[] = {0xe2, 0x80, 0xA5, 0x0};
|
||||||
const int sep_len = sizeof(sep) - 1;
|
const int sep_len = sizeof(sep) - 1;
|
||||||
const float sep_strwidth = BLF_width(fstyle->uifont_id, sep, sep_len + 1);
|
const float sep_strwidth = BLF_width(fstyle->uifont_id, sep, sep_len + 1);
|
||||||
float parts_strwidth;
|
float parts_strwidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user