CelestiaProject / Celestia

Real-time 3D visualization of space.
https://celestiaproject.space
GNU General Public License v2.0
1.86k stars 309 forks source link

Rewrite PNG handlers #2258

Closed ajtribick closed 2 weeks ago

ajtribick commented 2 weeks ago

Fix format determination - if there is a tRNS chunk, make sure to use an alpha-enabled format.

Some of the file handling was extremely dubious - it looks like what we wanted to do was actually to set the logging functions in the error/warning handlers, so just do that.

Also use row operations to avoid allocating the row pointers arrays.

Fixes #2257

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud