Fixed bug that deleted the underlying pixels when confirming a selection

This commit is contained in:
unsettledgames
2020-03-07 23:13:35 +01:00
parent 9324a6a57e
commit 378e0f0cd0
5 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
function isPixelEmpty(pixel) {
if ((pixel[0] == 0 && pixel[1] == 0 && pixel[2] == 0) || pixel[3] == 0) {
return true;
}
return false;
}