rQi += FBU.bytes - 1;
} else {
if (FBU.subencoding & 0x02) { // Background
- FBU.background = rQ.subarray(rQi, rQi + fb_Bpp);
+ FBU.background = rQ.slice(rQi, rQi + fb_Bpp);
rQi += fb_Bpp;
}
if (FBU.subencoding & 0x04) { // Foreground
- FBU.foreground = rQ.subarray(rQi, rQi + fb_Bpp);
+ FBU.foreground = rQ.slice(rQi, rQi + fb_Bpp);
rQi += fb_Bpp;
}
rQi += 1;
for (s = 0; s < subrects; s += 1) {
if (FBU.subencoding & 0x10) { // SubrectsColoured
- color = rQ.subarray(rQi, rQi + fb_Bpp);
+ color = rQ.slice(rQi, rQi + fb_Bpp);
rQi += fb_Bpp;
} else {
color = FBU.foreground;
* Make arrays quack
*/
-Array.prototype.subarray = function (start, end) {
- this.slice(start, end);
-};
-
Array.prototype.push8 = function (num) {
this.push(num & 0xFF);
};