Skip to content

Commit

Permalink
rc-45 brushstroke bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Sep 27, 2024
1 parent 0309e25 commit dff5bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/client/components/CVOverlayTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ export default class CVOverlayTask extends CVTask

const brushWidth = Math.round(this.ins.overlayBrushSize.value);

const width = Math.floor(this.uv.x*this.activeCanvas.width)-(brushWidth/2);
const height = Math.floor(this.uv.y*this.activeCanvas.height)-(brushWidth/2);
const width = Math.floor(this.uv.x*this.activeCanvas.width)-Math.floor(brushWidth/2);
const height = Math.floor(this.uv.y*this.activeCanvas.height)-Math.floor(brushWidth/2);
this.ctx.clearRect(width, height, brushWidth, brushWidth);
this.ctx.fillRect(width, height, brushWidth, brushWidth);
this.updateOverlayTexture();
Expand Down

0 comments on commit dff5bcf

Please sign in to comment.