From 3011e454755330825211fb4d38c6d2ddedaaa904 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 31 Oct 2022 16:22:25 -0400 Subject: [PATCH] Fix text in some buttons being cut off prematurely --- src/graphics/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp index 01b8f135c..faefa0e9f 100644 --- a/src/graphics/Graphics.cpp +++ b/src/graphics/Graphics.cpp @@ -489,7 +489,7 @@ int Graphics::textwidthx(const String &str, int w) i += 3; continue; } - cw += FontReader(str[i]).GetWidth(); + cw = FontReader(str[i]).GetWidth(); if (x+(cw/2) >= w) break; x += cw;