Skip to content

Commit

Permalink
treat lwmin as a multiple of gw, lowering min linewidth on high-dpi d…
Browse files Browse the repository at this point in the history
…isplays

not sure this is a good idea, seems to look rather poor on iphone
  • Loading branch information
robx committed Mar 18, 2020
1 parent 4022ff9 commit 9b14470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/puzzle/Graphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
var gwdev = Math.max(1, Math.round(gw / pxSize));
this.gw = gwdev * pxSize;

var lw = Math.max(this.cw / this.lwratio, this.lwmin);
var lw = Math.max(this.cw / this.lwratio, this.lwmin * this.gw);
var lwdev = Math.max(1, Math.round(lw / pxSize));
this.lw = lwdev * pxSize;
this.lm = this.lw / 2;
Expand Down

0 comments on commit 9b14470

Please sign in to comment.