Skip to content

Commit

Permalink
added two channels 16 bit png support
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Sep 11, 2023
1 parent d858b13 commit 31de39d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/fmt/fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ HL_PRIM bool HL_NAME(png_decode)( vbyte *data, int dataLen, vbyte *out, int widt
case 14:
img.format = PNG_FORMAT_LINEAR_RGB_ALPHA;
break;
case 15:
img.format = PNG_FORMAT_LINEAR_Y_ALPHA;
break;
default:
hl_blocking(false);
png_image_free(&img);
Expand Down

0 comments on commit 31de39d

Please sign in to comment.