change protected pixel in image upload from 0x20 to 0x80
This commit is contained in:
parent
352fb2781a
commit
950773e57c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user