mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Use cachedCanvas pixel ratio
This commit is contained in:
parent
41c10555bc
commit
3eb87ece05
@ -307,9 +307,9 @@
|
||||
);
|
||||
|
||||
var cacheCanvas = this._getCachedSceneCanvas();
|
||||
var ratio = context.canvas.pixelRatio;
|
||||
var ratio = cacheCanvas.pixelRatio;
|
||||
|
||||
context.drawImage(cacheCanvas._canvas, 0, 0, cacheCanvas.width / ratio, cacheCanvas.height /ratio);
|
||||
context.drawImage(cacheCanvas._canvas, 0, 0, cacheCanvas.width / ratio, cacheCanvas.height / ratio);
|
||||
context.restore();
|
||||
},
|
||||
_drawCachedHitCanvas: function(context) {
|
||||
|
Loading…
Reference in New Issue
Block a user