Skip to content

Commit 319eff2

Browse files
authored
Merge pull request #24 from IPdotSetAF/13-clock-position
debugged clock position
2 parents 304a0b6 + 19ec41c commit 319eff2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ window.onload = function () {
754754
let center = [Math.floor((columns - 17 * options.ui_clock_scale) / 2), Math.floor((rows - 5 * options.ui_clock_scale) / 2)];
755755
drawTextOnMask(hour + ":" + minute, center[0] + options.ui_clock_positionX, center[1] + options.ui_clock_positionY, options.ui_clock_scale);
756756
} else {
757-
let center = [Math.floor((columns - 5) / 2), Math.floor(rows / 2)];
757+
let center = [Math.floor((columns - 5) / 2), Math.floor((rows - 1) / 2)];
758758
drawTextOnMatrix(hour + ":" + minute, center[0] + options.ui_clock_positionX, center[1] + options.ui_clock_positionY);
759759
}
760760
break;

0 commit comments

Comments
 (0)