From c3d9f7832ddf012d9cfbb0a3ceb8ff7aa14560ef Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 1 Aug 2014 23:32:27 -0700 Subject: [PATCH] don't translate clipping rect --- midp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midp.js b/midp.js index f7304515..a2bc083b 100644 --- a/midp.js +++ b/midp.js @@ -775,7 +775,7 @@ MIDP.draw = function(g, anchor, x, y, w, h, cb) { if (clipped) { ctx.save(); ctx.beginPath(); - ctx.rect(clipX1 - transX, clipY1 - transY, clipX2 - clipX1, clipY2 - clipY1); + ctx.rect(clipX1, clipY1, clipX2 - clipX1, clipY2 - clipY1); ctx.clip(); } x += transX;