1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:28:13 +00:00
serenity/Userland
Nico Weber ab143e9b0e LibGfx/BMP: Clear alpha in palette entries
The semantics of BGRx8888 aren't super clear and it means different
things for different parts of the codebase. In particular, the PNG
writer still writes the x channel to the alpha channel of its output.

In BMPs, the 4th palette byte is usually 0, which means after #21412 we
started writing all .bmp files with <= 8bpp as completely transparent
to PNGs.

This works around that.

(See also #19464 for previous similar workarounds.)

The added `bitmap.bmp` is a 1bpp file I drew in Photoshop and saved
using its "Save as..." saving path.
2024-03-05 21:27:41 +00:00
..
Applets Keymap: Draw the current keymap text with the correct theme color 2024-03-02 19:24:53 +00:00
Applications Escalator: Allow failed password attempts to be retried 2024-03-04 13:25:22 -05:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos Userland: Propagate errors with TRY() where possible 2024-02-14 17:46:06 -05:00
DevTools Userland: Propagate errors with TRY() where possible 2024-02-14 17:46:06 -05:00
DynamicLoader DynamicLoader: Disable stack protector in some files for RISC-V 2024-03-04 01:44:11 +01:00
Games FlappyBug: Allow shortcuts for quitting and help 2024-02-19 00:09:34 +01:00
Libraries LibGfx/BMP: Clear alpha in palette entries 2024-03-05 21:27:41 +00:00
Services WindowServer: Prefer structured bindings when iterating over HashMaps 2024-03-01 14:05:53 -07:00
Shell Shell: Use Core::Environment instead of manually iterating environ 2024-02-27 08:33:48 +00:00
Utilities patch+LibDiff: Add support for applying patches with preprocessor macro 2024-03-03 08:56:00 +01:00
CMakeLists.txt