From 326bc7266d38eb94d75e8f08d2b5733c3d051c2e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 28 Jun 2023 01:54:37 +1000 Subject: Fix text box cursor offset with hidden text --- source/windowing/StarGuiContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/windowing/StarGuiContext.cpp') 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 -- cgit v1.2.3