change protected pixel in image upload from 0x20 to 0x80

This commit is contained in:
HF 2020-01-31 01:46:25 +01:00
parent 352fb2781a
commit 950773e57c

View File

@ -66,7 +66,7 @@ export async function imageABGR2Canvas(
? palette.abgr.indexOf(clr)
: palette.abgr.indexOf(clr, 2);
if (~clrIndex) {
const pixel = (protect) ? (clrIndex | 0x20) : clrIndex;
const pixel = (protect) ? (clrIndex | 0x80) : clrIndex;
chunk[cOff] = pixel;
pxlCnt += 1;
}