mirror of https://github.com/espruino/BangleApps
Fix moon icon positioning
parent
c42be52076
commit
eb2450a177
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue