1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:47:34 +00:00

LibGfx+GameOfLife: Remove Gfx::make_rgb() and its one user

This commit is contained in:
Andreas Kling 2022-03-04 22:01:26 +01:00
parent fd57ecfdcf
commit 5c4bb03926
2 changed files with 1 additions and 6 deletions

View file

@ -139,7 +139,7 @@ void BoardWidget::paint_event(GUI::PaintEvent& event)
bool on = m_board->cell(row, column);
if (on) {
fill_color = Color::from_rgb(Gfx::make_rgb(220, 220, 80));
fill_color = Color::from_rgb(0xdcdc50);
} else {
fill_color = Color::MidGray;
}

View file

@ -19,11 +19,6 @@ namespace Gfx {
enum class ColorRole;
typedef u32 RGBA32;
constexpr u32 make_rgb(u8 r, u8 g, u8 b)
{
return ((r << 16) | (g << 8) | b);
}
struct HSV {
double hue { 0 };
double saturation { 0 };