Skip to content

Commit

Permalink
Minutes DIsplay Error fixed
Browse files Browse the repository at this point in the history
Cleared the Canvas before creating the nice clock this ensures minutes get erased before display
  • Loading branch information
SnehalSrivastava27 committed Jan 22, 2025
1 parent 3a84527 commit c9ded62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activities/Clock.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ define(["sugar-web/activity/activity","sugar-web/env","sugar-web/graphics/radiob
Clock.prototype.drawNiceBackground = function () {
var ctx = this.bgCanvasElem.getContext('2d');

ctx.clearRect(this.margin, this.margin,
this.radius * 2, this.radius * 2);
ctx.clearRect(0, 0,
this.size, this.size);
ctx.drawImage(niceImage, this.margin, this.margin,
this.radius * 2, this.radius * 2);
}
Expand Down

0 comments on commit c9ded62

Please sign in to comment.