ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Revision:
19:370d83a8dc33
Parent:
18:24ce897024d0
Child:
21:62d2b5b73160
--- a/Menus/UI/UI.cpp	Wed Apr 03 14:31:49 2019 +0000
+++ b/Menus/UI/UI.cpp	Wed Apr 03 16:18:26 2019 +0000
@@ -40,7 +40,7 @@
     
     bool selected = buttonCurrentlyDrawing == buttonCurrentlySelected;
     
-    int wordWidth = strlen(text) * (Graphics::UI::CHAR_WIDTH + Graphics::UI::CHAR_SPACE);
+    int wordWidth = strlen(text) * (Graphics::UI::CHAR_WIDTH + Graphics::UI::CHAR_SPACE) - 1;
     
     if (selected) {
         Graphics::UI::drawBorder(