ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibGfx: Redirect PNG errors and warnings to our own logging functions

Open rgret-dev opened this issue 1 year ago • 0 comments

Before, libpng would use its own internal logging mechanism to print non-fatal errors and warnings to stdout/stderr. This made it confusing when trying to search the Ladybird codebase for those messages as they didn't exist.

This commit uses png_set_error_fn from libpng to redirect those messages to our own custom logging functions instead.

cc: @LucasChollet

rgret-dev avatar Dec 08 '24 17:12 rgret-dev