Fix moon icon positioning

pull/184/head
Paul Cockrell 2020-04-02 12:12:27 +01:00
parent c42be52076
commit eb2450a177
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function drawMoon(phase, x, y) {
imgObj = require("Storage").readJSON(moonImgFiles[phase]); imgObj = require("Storage").readJSON(moonImgFiles[phase]);
imgObj.buffer = require("heatshrink").decompress(atob(imgObj.image)); 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 // linear interpolation between two values a and b