Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarGuiContext.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 01:54:37 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 01:54:37 +1000
commit326bc7266d38eb94d75e8f08d2b5733c3d051c2e (patch)
tree3664941a9a6cdb1d4f20477e93f14a2189501547 /source/windowing/StarGuiContext.cpp
parentcd497bbcf399bcfa17694725583cefd93bff65d9 (diff)
Fix text box cursor offset with hidden text
Diffstat (limited to 'source/windowing/StarGuiContext.cpp')
-rw-r--r--source/windowing/StarGuiContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/windowing/StarGuiContext.cpp b/source/windowing/StarGuiContext.cpp
index a19d684..e080ecf 100644
--- a/source/windowing/StarGuiContext.cpp
+++ b/source/windowing/StarGuiContext.cpp
@@ -385,6 +385,7 @@ int GuiContext::stringWidth(String const& s) {
return textPainter()->stringWidth(s);
}
+//TODO: Make this use StringView
int GuiContext::stringInterfaceWidth(String const& s) {
if (interfaceScale()) {
// font size is already adjusted UP by interfaceScale, so we have to adjust