aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-22 10:40:21 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-22 10:40:21 +0100
commit9ba59929c23c71a5231670a50c3fcb1165111c90 (patch)
treeddc7ff719f76c009410c96c09a34be5b75b9bc92 /src/Text.cpp
parent4aec31515ff6f61f41dfd66551a3fce44f243535 (diff)
Fix touch scroll clamping to selected item, making it appear laggy. Fix emoji offset for non 1.0 scaling
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp2
1 files changed, 1 insertions, 1 deletions
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;