mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 02:13:58 +01:00
Retina support / honoring draw style
This commit is contained in:
parent
6c51a1e83d
commit
0a20bca450
1 changed files with 2 additions and 2 deletions
|
|
@ -233,8 +233,8 @@ TCAD.TWO.Viewer.prototype.repaint = function() {
|
|||
for (var o = 0; o < layer.objects.length; o++) {
|
||||
var obj = layer.objects[o];
|
||||
style = obj.style != null ? obj.style : layer.style;
|
||||
if (style != prevStyle) TCAD.TWO.utils.setStyle(style, ctx, this.scale);
|
||||
obj.draw(ctx, this.scale, this);
|
||||
if (style != prevStyle) TCAD.TWO.utils.setStyle(style, ctx, this.scale / this.retinaPxielRatio);
|
||||
obj.draw(ctx, this.scale / this.retinaPxielRatio, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue