diff --git a/gdxapp4d-app-calculator/src/main/java/love/distributedrebirth/gdxapp4d/app/calculator/CalculatorDeskApp.java b/gdxapp4d-app-calculator/src/main/java/love/distributedrebirth/gdxapp4d/app/calculator/CalculatorDeskApp.java index a2666d8d..b2d67db9 100644 --- a/gdxapp4d-app-calculator/src/main/java/love/distributedrebirth/gdxapp4d/app/calculator/CalculatorDeskApp.java +++ b/gdxapp4d-app-calculator/src/main/java/love/distributedrebirth/gdxapp4d/app/calculator/CalculatorDeskApp.java @@ -66,6 +66,10 @@ public class CalculatorDeskApp extends AbstractDeskApp implements DeskAppRendere ImGui.text(valueLoc); ImGui.separator(); + if (value.length() > 8) { + value = "0"; // dirty limit for parseInt + valueLoc = baseNumber.BȍőnPrintNumber10(Integer.parseInt(value), 9999999); + } if (ImGui.button(baseNumber.BȍőnNumber10().BȍőnCharFor(7), buttonSize, buttonSize)) { value+="7";