diff --git a/README.md b/README.md index 88215ed..2319fdd 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,28 @@ Calculate the vertical speed in meter/min or feet/min depending on the watch set ## Release Notes +### Version 1.33 + - Version 1.32 was invalid as I forgot to remove troubleshooting code. + +| Memory Usage on va3 (28.6 KB) | Current | Peak | +| --------------------------------- |:-------:|:-------:| +| At startup | 25.5 kB | 27.1 kB | +| 10 sec running | 25.5 kB | 27.5 kB | +| After setting change | 25.5 kB | 28.4 kB | + +| Memory Usage on fenix5 (28.6 KB) | Current | Peak | +| --------------------------------- |:-------:|:-------:| +| At startup | 25.4 kB | 27.4 kB | +| 10 sec running | 25.4 kB | 27.7 kB | +| After setting change | 25.4 kB | 28.4 kB | + + +| Memory Usage on fr945 (124.6 KB) | Current | Peak | +| --------------------------------- |:-------:|:-------:| +| At startup | 30.5 kB | 32.6 kB | +| 10 sec running | 30.5 kB | 33.0 kB | +| After setting change | 30.5 kB | 33.7 kB | + ### Version 1.32 - Added support for D2 Air X10 diff --git a/resources/settings/properties.xml b/resources/settings/properties.xml index 582d659..0285552 100644 --- a/resources/settings/properties.xml +++ b/resources/settings/properties.xml @@ -1,5 +1,5 @@ - 1.32 + 1.33 30 false 0 diff --git a/source/GRunView.mc b/source/GRunView.mc index 16b451f..67a25b5 100644 --- a/source/GRunView.mc +++ b/source/GRunView.mc @@ -995,19 +995,19 @@ class GRunView extends WatchUi.DataField // Validate font size (testing) /////////////////////////////////////////////////////////////////////////////////////////////////// - dc.clearClip(); - if (id == 4) { - if (timer.toNumber() % 2 == 1) { lapCount = (lapCount + 1) % 9; } - font = 8 - lapCount; - - var textDimensions = GRunApp.getTextDimensions(dc, formattedValue, font); - if (font == 8) { - System.println("font: " + font + ", width: " + areaWidth + "|" + textDimensions[0] + ", height: " + areaHeight + "|" + textDimensions[1]); - } else { - var textDimensions2 = GRunApp.getTextDimensions(dc, formattedValue, font+1); - System.println("font: " + font + ", width: " + areaWidth + "|" + textDimensions[0] + "|" + textDimensions2[0] + "(" + (areaWidth-textDimensions2[0]) + "), height: " + areaHeight + "|" + textDimensions[1] + "|" + textDimensions2[1] + "(" + (areaHeight-textDimensions2[1]) + ")"); - } - } + //dc.clearClip(); + //if (id == 4) { + // if (timer.toNumber() % 2 == 1) { lapCount = (lapCount + 1) % 9; } + // font = 8 - lapCount; + // + // var textDimensions = GRunApp.getTextDimensions(dc, formattedValue, font); + // if (font == 8) { + // System.println("font: " + font + ", width: " + areaWidth + "|" + textDimensions[0] + ", height: " + areaHeight + "|" + textDimensions[1]); + // } else { + // var textDimensions2 = GRunApp.getTextDimensions(dc, formattedValue, font+1); + // System.println("font: " + font + ", width: " + areaWidth + "|" + textDimensions[0] + "|" + textDimensions2[0] + "(" + (areaWidth-textDimensions2[0]) + "), height: " + areaHeight + "|" + textDimensions[1] + "|" + textDimensions2[1] + "(" + (areaHeight-textDimensions2[1]) + ")"); + // } + //} /////////////////////////////////////////////////////////////////////////////////////////////////// // Realign text @@ -1040,16 +1040,16 @@ class GRunView extends WatchUi.DataField // Validate font size (testing) /////////////////////////////////////////////////////////////////////////////////////////////////// - if (displayIcon) { areaX += 30; } // 24 (iconWidth) + 6 (padding) - var textDimensions = GRunApp.getTextDimensions(dc, formattedValue, font); - var x2 = areaX + ((areaWidth - textDimensions[0]) / 2); - var y2 = areaY + ((areaHeight - textDimensions[1]) / 2); - dc.setPenWidth(1); - dc.setColor(Graphics.COLOR_RED, Graphics.COLOR_TRANSPARENT); - dc.drawRectangle(x2, y2, textDimensions[0], textDimensions[1]); - dc.setPenWidth(2); - dc.setColor(Graphics.COLOR_PINK, Graphics.COLOR_TRANSPARENT); - dc.drawRectangle(areaX, areaY, areaWidth, areaHeight); + //if (displayIcon) { areaX += 30; } // 24 (iconWidth) + 6 (padding) + //var textDimensions = GRunApp.getTextDimensions(dc, formattedValue, font); + //var x2 = areaX + ((areaWidth - textDimensions[0]) / 2); + //var y2 = areaY + ((areaHeight - textDimensions[1]) / 2); + //dc.setPenWidth(1); + //dc.setColor(Graphics.COLOR_RED, Graphics.COLOR_TRANSPARENT); + //dc.drawRectangle(x2, y2, textDimensions[0], textDimensions[1]); + //dc.setPenWidth(2); + //dc.setColor(Graphics.COLOR_PINK, Graphics.COLOR_TRANSPARENT); + //dc.drawRectangle(areaX, areaY, areaWidth, areaHeight); /////////////////////////////////////////////////////////////////////////////////////////////////// }