mirror of
https://github.com/jech/galene.git
synced 2024-11-14 04:35:57 +01:00
Reset transform at the end of filters.
This commit is contained in:
parent
45c2711522
commit
d5e3429262
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue