1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Fixed mode "fake at input".

This commit is contained in:
kkapsner 2017-02-10 16:30:11 +01:00
parent cd16614a7f
commit 66536113e8
3 changed files with 7 additions and 6 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
*.svg
*.svg
printed.png

View File

@ -223,9 +223,9 @@
return function fillText(str, x, y){
notify("fakedInput");
var window = getWindow(this.canvas);
var oldImageData = getImageData(window, this);
var oldImageData = getImageData(window, this).imageData;
var ret = window.CanvasRenderingContext2D.prototype.fillText.apply(this, arguments);
var newImageData = getImageData(window, this);
var newImageData = getImageData(window, this).imageData;
this.putImageData(randomMixImageData(window, oldImageData, newImageData), 0, 0);
return ret;
};
@ -242,9 +242,9 @@
return function strokeText(str, x, y){
notify("fakedInput");
var window = getWindow(this.canvas);
var oldImageData = getImageData(window, this);
var oldImageData = getImageData(window, this).imageData;
var ret = window.CanvasRenderingContext2D.prototype.strokeText.apply(this, arguments);
var newImageData = getImageData(window, this);
var newImageData = getImageData(window, this).imageData;
this.putImageData(randomMixImageData(window, oldImageData, newImageData), 0, 0);
return ret;
};

View File

@ -6,7 +6,7 @@ Version 0.3.7:
-
fixes:
-
- fake at input was broken
Version 0.3.6:
changes: