genode/repos/gems/src/test
Norman Feske bb06d879aa os: make 'Genode::Color' C++20 friendly
This patch turns 'Color' from a class to a POD type by replacing
the constructors by the named create functions 'rgb', 'clamped_rgb',
and 'clamped_rgba'. It thereby enables the initialization of Color
values using { .r = ... } syntax and makes the type usable in const
expressions.

It also narrows the type for color components and alpha values to
uint8_t. So possible integer overflows of computed values are detected
by -Wconversion.

As 'Color::rgb(0, 0, 0)' is repeatedly used as a default value, the
patch adds the 'Color::black()' function.

Fixes #5238
2024-06-20 12:54:30 +02:00
..
aes_cbc_4k Add missing shared-object link dependencies 2022-02-15 10:23:14 +01:00
cpu_sampler Exclude higher-level repos from strict warnings 2018-01-17 12:14:36 +01:00
decorator_stress Add missing shared-object link dependencies 2022-02-15 10:23:14 +01:00
dialog dialog: pass value to Select_button::click 2023-11-28 14:24:26 +01:00
text_painter os: make 'Genode::Color' C++20 friendly 2024-06-20 12:54:30 +02:00
tiled_wm Update tiled_wm test for tiled-console scenario 2024-04-12 15:00:44 +02:00