diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2021-01-19 10:50:43 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2021-01-31 20:10:50 +0200 |
commit | c75923498e9a60466a0dde7a5fed3dd0108a790f (patch) | |
tree | 953d980edc138b39eec971d8cc0bb7ee5d3d9631 /scene/gui/item_list.cpp | |
parent | 5525cd85c60455b0bb9716bbef0ad2ad8111d752 (diff) |
Use integer coordinates for the font glyphs rendering.
Diffstat (limited to 'scene/gui/item_list.cpp')
-rw-r--r-- | scene/gui/item_list.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 799b0ed612..bd57817bd3 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1194,7 +1194,6 @@ void ItemList::_notification(int p_what) { } if (icon_mode == ICON_MODE_TOP && max_text_lines > 0) { - text_ofs = text_ofs.floor(); text_ofs += base_ofs; text_ofs += items[i].rect_cache.position; @@ -1217,7 +1216,6 @@ void ItemList::_notification(int p_what) { text_ofs.y += (items[i].rect_cache.size.height - size2.y) / 2; } - text_ofs = text_ofs.floor(); text_ofs += base_ofs; text_ofs += items[i].rect_cache.position; |