Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing colour formats in fmt #684

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libs/fmt/fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,22 @@ HL_PRIM bool HL_NAME(png_decode)( vbyte *data, int dataLen, vbyte *out, int widt
case 1:
img.format = PNG_FORMAT_BGR;
break;
case 6:
img.format = PNG_FORMAT_GRAY;
break;
case 2:
case 7:
img.format = PNG_FORMAT_RGBA;
break;
case 3:
case 8:
img.format = PNG_FORMAT_BGRA;
break;
case 4:
case 9:
img.format = PNG_FORMAT_ABGR;
break;
case 5:
case 10:
img.format = PNG_FORMAT_ARGB;
break;
Expand Down
Loading