1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibGfx: Fix debug-printing colors

The operator has to live in the namespace Gfx.
This commit is contained in:
Sergey Bugaev 2020-06-02 21:29:34 +03:00 committed by Andreas Kling
parent 1e266aec27
commit f49e83c565

View file

@ -432,12 +432,12 @@ Optional<Color> Color::from_string(const StringView& string)
return Color(r.value(), g.value(), b.value(), a.value());
}
}
const LogStream& operator<<(const LogStream& stream, Color value)
{
return stream << value.to_string();
}
}
bool IPC::encode(IPC::Encoder& encoder, const Color& color)
{