mirror of
https://github.com/jech/galene.git
synced 2024-11-26 02:25:58 +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.scale(-1, 1);
|
||||
ctx.drawImage(src, -width, 0);
|
||||
ctx.resetTransform();
|
||||
return true;
|
||||
},
|
||||
},
|
||||
|
@ -956,6 +957,7 @@ let filters = {
|
|||
ctx.canvas.height = height;
|
||||
ctx.scale(1, -1);
|
||||
ctx.drawImage(src, 0, -height);
|
||||
ctx.resetTransform();
|
||||
return true;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue