Commit d5e34292 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Reset transform at the end of filters.

parent 45c27115
...@@ -944,6 +944,7 @@ let filters = { ...@@ -944,6 +944,7 @@ let filters = {
ctx.canvas.height = height; ctx.canvas.height = height;
ctx.scale(-1, 1); ctx.scale(-1, 1);
ctx.drawImage(src, -width, 0); ctx.drawImage(src, -width, 0);
ctx.resetTransform();
return true; return true;
}, },
}, },
...@@ -956,6 +957,7 @@ let filters = { ...@@ -956,6 +957,7 @@ let filters = {
ctx.canvas.height = height; ctx.canvas.height = height;
ctx.scale(1, -1); ctx.scale(1, -1);
ctx.drawImage(src, 0, -height); ctx.drawImage(src, 0, -height);
ctx.resetTransform();
return true; return true;
}, },
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment