Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes Swaybg submit 10-bit buffers when the background image it is given is a 16-bit deep PNG file.
This PR builds on top of !53, and makes Swaybg submit 10-bit buffers when the background image it is given is a 16-bit deep PNG file. (#53 is necessary since Cairo does not have an equivalent to CAIRO_FORMAT_RGB30 with an alpha channel; without #53, this code would render transparent 8-bit PNGs with alpha and 16-bit PNGs without.)Note: loading 16-bit PNG images gave incorrect results with Cairo 1.17.2 through 1.17.5. Since 16 bit PNG images are rare, and most distributions either use stable releases (latest 1.16.0), or development snapshots (latest 1.17.6), this bug is unlikely to affect anyone. Cairo versions before 1.17.2 reduce 16-bit PNG files to 8-bit on loading; swaybg will continue to submit 8-bit buffers for these.Edit: Cairo 1.18 has now been out for a while.