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

SavePNG: make sure to finalize image file #10907

Merged
merged 1 commit into from Jul 28, 2022

Conversation

shuffle2
Copy link
Contributor

😳forgot to put IEND in the png

@@ -95,7 +95,8 @@ bool SavePNG(const std::string& path, const u8* input, ImageByteFormat format, u
if (spng_set_ihdr(ctx.get(), &ihdr))
return false;

if (spng_encode_image(ctx.get(), nullptr, 0, SPNG_FMT_PNG, SPNG_ENCODE_PROGRESSIVE))
if (spng_encode_image(ctx.get(), nullptr, 0, SPNG_FMT_PNG,
SPNG_ENCODE_PROGRESSIVE | SPNG_ENCODE_FINALIZE))
return false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add braces.

@dvessel
Copy link
Contributor

dvessel commented Jul 28, 2022

This fixes the errors. Thanks!

@AdmiralCurtiss AdmiralCurtiss merged commit 000c9c7 into dolphin-emu:master Jul 28, 2022
11 checks passed
@shuffle2 shuffle2 deleted the pngend branch July 31, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants