Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions web/libs/editor/src/lib/AudioUltra/Visual/Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ export class Layer extends Events<LayerEvents> {
copyToBuffer() {
this.createBufferCanvas();

// This needs to be updated to ensure it has the same pixel ratio as the canvas it is copying from/to
this._bufferCanvas.width = this.canvas.width;
this._bufferCanvas.height = this.canvas.height;

// Copy the current canvas to the buffer
this._bufferContext.imageSmoothingEnabled = false;
this._bufferContext.clearRect(0, 0, this._bufferCanvas.width, this._bufferCanvas.height);
Expand Down
Loading