fix two small syntax errors

master
czeppi 2025-03-03 07:50:30 +01:00
parent e6606979ee
commit 7eb6faa25d
1 changed files with 13 additions and 12 deletions

View File

@ -40,7 +40,7 @@ const calcHandPolygon = function(len, dia, alpha) {
"x": dia/2 * Math.cos(alpha + Math.PI/2),
"y": dia/2 * Math.sin(alpha + Math.PI/2)
},
return [
polygon = [
center.x - d.x,
center.y - d.y,
center.x + d.x,
@ -50,6 +50,7 @@ const calcHandPolygon = function(len, dia, alpha) {
x - d.x,
y - d.y
];
return polygon;
};
const drawHands = function(date) {
@ -104,7 +105,7 @@ const drawNumbers = function() {
g.setColor(1, 1, 1);
g.setBgColor(0, 0, 0);
for(let i = 0; i < 12; i++){
hour = hourNumberPositions[i][0]
hour = hourNumberPositions[i][0];
if (settings.show24HourMode){
hour *= 2;
}
@ -142,7 +143,7 @@ const queueDraw = function() {
const draw = function() {
// draw black rectangle in the middle to clear screen from scale and hands
g.setColor(0, 0, 0);
g.setColor(0, 1, 1);
g.fillRect(10, 10, 2 * center.x - 10, 2 * center.x - 10);
// prepare for drawing the text
g.setFontAlign(0, 0);