提交 ec9db6f8 编写于 作者: S sammyhw 提交者: GitHub

allow for all 16 bits

上级 3e7f2d6e
......@@ -5719,7 +5719,7 @@ static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req
// Fill this channel with default data.
if (bitdepth == 16 && bpc == 16) {
stbi__uint16 *q = ((stbi__uint16 *) out) + channel;
stbi_uc val = channel == 3 ? 65535 : 0;
stbi__uint16 val = channel == 3 ? 65535 : 0;
for (i = 0; i < pixelCount; i++, q += 4)
*q = val;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册