diff options
Diffstat (limited to 'tests/cursor.html')
| -rw-r--r-- | tests/cursor.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cursor.html b/tests/cursor.html index 81fba82..867b55d 100644 --- a/tests/cursor.html +++ b/tests/cursor.html @@ -45,6 +45,17 @@ var ANDsz = w * h * 4; var XORsz = Math.ceil( (w * h) / 8.0 ); + // Push multi-byte little-endian values + arr.push16le = function (num) { + this.push((num ) & 0xFF, + (num >> 8) & 0xFF ); + }; + arr.push32le = function (num) { + this.push((num ) & 0xFF, + (num >> 8) & 0xFF, + (num >> 16) & 0xFF, + (num >> 24) & 0xFF ); + }; // Main header arr.push16le(0); // Reserved |
