mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Removed bug with inproper calls (i.e. float point numbers for sw or sh) to getImageData().
This commit is contained in:
parent
4ed4bb759b
commit
98a15ef9f2
@ -166,6 +166,8 @@
|
||||
mode: blockMode.readAPI,
|
||||
object: unsafeWindow.CanvasRenderingContext2D,
|
||||
fake: function getImageData(sx, sy, sw, sh){
|
||||
sw = parseInt(sw, 10);
|
||||
sh = parseInt(sh, 10);
|
||||
var l = sw * sh * 4;
|
||||
var data = new Uint8ClampedArray(l);
|
||||
for (var i = 0; i < l; i += 1){
|
||||
|
Loading…
x
Reference in New Issue
Block a user