From 9ba59929c23c71a5231670a50c3fcb1165111c90 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 22 Mar 2021 10:40:21 +0100 Subject: Fix touch scroll clamping to selected item, making it appear laggy. Fix emoji offset for non 1.0 scaling --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text.cpp') diff --git a/src/Text.cpp b/src/Text.cpp index 32ba360..ee6bd55 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -383,7 +383,7 @@ namespace QuickMedia vertices[vertices_index].append({ vertexBottomRight, sf::Color::White, textureBottomRight }); vertices[vertices_index].append({ vertexTopRight, sf::Color::White, textureTopRight }); - glyphPos.x += emoji_rec.width + characterSpacing; + glyphPos.x += std::floor(emoji_rec.width * get_ui_scale()) + characterSpacing; vertices_linear.push_back({vertices_index, vertexStart, 0, codePoint}); } continue; -- cgit v1.2.3