From eb2450a177b0f9a2f23dd291538cb130cb897063 Mon Sep 17 00:00:00 2001 From: Paul Cockrell Date: Thu, 2 Apr 2020 12:12:27 +0100 Subject: [PATCH] Fix moon icon positioning --- apps/astrocalc/astrocalc-app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/astrocalc/astrocalc-app.js b/apps/astrocalc/astrocalc-app.js index 655544723..c1a29219d 100644 --- a/apps/astrocalc/astrocalc-app.js +++ b/apps/astrocalc/astrocalc-app.js @@ -18,7 +18,7 @@ function drawMoon(phase, x, y) { imgObj = require("Storage").readJSON(moonImgFiles[phase]); imgObj.buffer = require("heatshrink").decompress(atob(imgObj.image)); - g.drawImage(imgObj, x /*- (imgObj.width / 2)*/, y /*- (imgObj.height)*/); + g.drawImage(imgObj, x - (imgObj.width / 2), y); } // linear interpolation between two values a and b