mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 04:40:20 +01:00
Fixed mode "fake at input".
This commit is contained in:
parent
cd16614a7f
commit
66536113e8
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.svg
|
||||
*.svg
|
||||
printed.png
|
@ -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;
|
||||
};
|
||||
|
@ -6,7 +6,7 @@ Version 0.3.7:
|
||||
-
|
||||
|
||||
fixes:
|
||||
-
|
||||
- fake at input was broken
|
||||
|
||||
Version 0.3.6:
|
||||
changes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user