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:
parent
dd2487d0d7
commit
eb31ea367a
1 changed files with 2 additions and 5 deletions
3
qb.js
3
qb.js
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue