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:
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){
|
return function fillText(str, x, y){
|
||||||
notify("fakedInput");
|
notify("fakedInput");
|
||||||
var window = getWindow(this.canvas);
|
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 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);
|
this.putImageData(randomMixImageData(window, oldImageData, newImageData), 0, 0);
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
@ -242,9 +242,9 @@
|
|||||||
return function strokeText(str, x, y){
|
return function strokeText(str, x, y){
|
||||||
notify("fakedInput");
|
notify("fakedInput");
|
||||||
var window = getWindow(this.canvas);
|
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 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);
|
this.putImageData(randomMixImageData(window, oldImageData, newImageData), 0, 0);
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
@ -6,7 +6,7 @@ Version 0.3.7:
|
|||||||
-
|
-
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
-
|
- fake at input was broken
|
||||||
|
|
||||||
Version 0.3.6:
|
Version 0.3.6:
|
||||||
changes:
|
changes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user