Merge branch 'patch-1' of https://github.com/cactis/konva into cactis-patch-1

This commit is contained in:
Anton Lavrenov 2015-04-26 07:46:40 +07:00
commit 82c1de564f

View File

@ -1162,7 +1162,7 @@ var Konva = {};
var canvas = Konva.Util.createCanvasElement(),
context = canvas.getContext('2d'),
_pixelRatio = (function() {
var devicePixelRatio = window.devicePixelRatio || 1,
var devicePixelRatio = Konva.window.devicePixelRatio || 1,
backingStoreRatio = context.webkitBackingStorePixelRatio
|| context.mozBackingStorePixelRatio
|| context.msBackingStorePixelRatio