mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:37:35 +00:00
LibGfx+GameOfLife: Remove Gfx::make_rgb() and its one user
This commit is contained in:
parent
fd57ecfdcf
commit
5c4bb03926
2 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue