1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Reset transform at the end of filters.

This commit is contained in:
Juliusz Chroboczek 2021-01-13 14:36:29 +01:00
parent 45c2711522
commit d5e3429262

View file

@ -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 = {
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;
}, },
}, },