From 950773e57cdef0d0dfdb882cebcecccedbfcd4c4 Mon Sep 17 00:00:00 2001 From: HF Date: Fri, 31 Jan 2020 01:46:25 +0100 Subject: [PATCH] change protected pixel in image upload from 0x20 to 0x80 --- src/core/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Image.js b/src/core/Image.js index cdc18e1..1767e54 100644 --- a/src/core/Image.js +++ b/src/core/Image.js @@ -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; }