Skip to content

Commit

Permalink
Merge pull request #24 from IPdotSetAF/13-clock-position
Browse files Browse the repository at this point in the history
debugged clock position
  • Loading branch information
IPdotSetAF committed Jun 12, 2024
2 parents 304a0b6 + 19ec41c commit 319eff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ window.onload = function () {
let center = [Math.floor((columns - 17 * options.ui_clock_scale) / 2), Math.floor((rows - 5 * options.ui_clock_scale) / 2)];
drawTextOnMask(hour + ":" + minute, center[0] + options.ui_clock_positionX, center[1] + options.ui_clock_positionY, options.ui_clock_scale);
} else {
let center = [Math.floor((columns - 5) / 2), Math.floor(rows / 2)];
let center = [Math.floor((columns - 5) / 2), Math.floor((rows - 1) / 2)];
drawTextOnMatrix(hour + ":" + minute, center[0] + options.ui_clock_positionX, center[1] + options.ui_clock_positionY);
}
break;
Expand Down

0 comments on commit 319eff2

Please sign in to comment.