1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-09-20 04:24:45 +00:00

Improved readability of sub-Paint.

This commit is contained in:
William Barnes 2022-04-26 14:40:26 -04:00
parent dd2487d0d7
commit eb31ea367a

3
qb.js
View file

@ -906,7 +906,6 @@ var QB = new function() {
data[pixelIndex+1] = fillColor.g;
data[pixelIndex+2] = fillColor.b;
data[pixelIndex+3] = fillColor.a;
if (x > 0) {
if (checkPixel(data, pixelIndex - 4, fillColor, borderColor)) {
if (!flagLeft) {
@ -917,7 +916,6 @@ var QB = new function() {
flagLeft = false;
}
}
if (x < screen.canvas.width - 1) {
if (checkPixel(data, pixelIndex + 4, fillColor, borderColor)) {
if (!flagRight) {
@ -928,7 +926,6 @@ var QB = new function() {
flagRight = false;
}
}
pixelIndex += screen.canvas.width * 4;
}
}