Skip to content

Commit 67eeb33

Browse files
committed
snap linewidth to pixel multiple
1 parent 4e2086f commit 67eeb33

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/puzzle/Graphic.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,9 @@
317317
var gwdev = Math.max(1, Math.round(gw / pxSize));
318318
this.gw = gwdev * pxSize;
319319

320-
var lwmin = this.lwmin / this.devicePixelRatio;
321-
this.lw = Math.max(this.cw / this.lwratio, lwmin);
320+
var lw = Math.max(this.cw / this.lwratio, this.lwmin);
321+
var lwdev = Math.max(1, Math.round(lw / pxSize));
322+
this.lw = lwdev * pxSize;
322323
this.lm = this.lw / 2;
323324
},
324325
setOffset: function() {

0 commit comments

Comments
 (0)