Skip to content

Commit

Permalink
making Save-as PNG work by not refresehing overlayCanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitGupta14 committed Aug 6, 2023
1 parent e500a20 commit ff33fb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2740,8 +2740,8 @@ class Activity {
canvas.height = defaultHeight;
overCanvas.width = canvas.width;
overCanvas.height =canvas.width;
overlayCanvas.width = defaultWidth;
overlayCanvas.height = defaultHeight;
// overlayCanvas.width = defaultWidth;
// overlayCanvas.height = defaultHeight;
canvasHolder.width = defaultWidth;
canvasHolder.height = defaultHeight;

Expand All @@ -2754,8 +2754,8 @@ class Activity {
canvas.height = windowHeight;
overCanvas.width = canvas.width;
overCanvas.height =canvas.width;
overlayCanvas.width = canvas.width;
overlayCanvas.height = canvas.height;
// overlayCanvas.width = canvas.width;
// overlayCanvas.height = canvas.height;
canvasHolder.width = canvas.width;
canvasHolder.height = canvas.height;
}
Expand Down

0 comments on commit ff33fb1

Please sign in to comment.