Revert "Merge pull request #4339 from bartvde/issue-4337"

This reverts commit 7f4c6e3634, reversing
changes made to c5dac0aa70.
This commit is contained in:
Bart van den Eijnden
2015-11-12 20:29:54 +01:00
parent 70d376f215
commit b426fa5509
3 changed files with 3 additions and 14 deletions

View File

@@ -344,10 +344,8 @@ ol.render.canvas.Replay.prototype.replay_ = function(
context.globalAlpha = alpha * opacity;
}
var w = width - originX;
var h = height - originY;
context.drawImage(image, originX, originY, w, h, x, y,
w * pixelRatio, h * pixelRatio);
context.drawImage(image, originX, originY, width, height,
x, y, width * pixelRatio, height * pixelRatio);
if (opacity != 1) {
context.globalAlpha = alpha;