From fe010d949cdd37da4f47f2296b501e27607a0660 Mon Sep 17 00:00:00 2001 From: Le~Kat Date: Fri, 24 Feb 2023 23:59:41 -0500 Subject: [PATCH] fixed bug that caused rolled dice on the right of screen to be writ off-screen --- apps/multidice/ChangeLog | 1 + apps/multidice/app.js | 2 +- apps/multidice/metadata.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/multidice/ChangeLog b/apps/multidice/ChangeLog index a216ea61b..c35862f7c 100644 --- a/apps/multidice/ChangeLog +++ b/apps/multidice/ChangeLog @@ -1,2 +1,3 @@ 0.90: got most of the features done, lacking some polish and real-hardware testing 1.00: overhauled the whole app, made some margins larger to be easier to tap on +1.01: fixed bug that caused rolled dice on the right of screen to be writ off-screen diff --git a/apps/multidice/app.js b/apps/multidice/app.js index 911177983..58b72e9fc 100644 --- a/apps/multidice/app.js +++ b/apps/multidice/app.js @@ -105,7 +105,7 @@ function rollDice() { if (SELECTION_ARRAY [i] != 0) { - g.drawString ((" " + resultsArr [i]).slice (-3), 96, 10 + 40 * i); + g.drawString ((" " + resultsArr [i]).slice (-3), 96, 10 + 40 * (i - 4)); } } } diff --git a/apps/multidice/metadata.json b/apps/multidice/metadata.json index 1b02945b6..3e82d01be 100644 --- a/apps/multidice/metadata.json +++ b/apps/multidice/metadata.json @@ -1,7 +1,7 @@ { "id": "multidice", "name": "multiple dice roller", "shortName":"multidice", - "version":"1.00", + "version":"1.01", "description": "roll anywhere from 1-8 dice at the same time", "icon": "app.png", "tags": "tool,game",