mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
Meta+Userland: Pass Gfx::Color by value
Gfx::Color is always 4 bytes (it's just a wrapper over u32) it's less work just to pass the color directly. This also updates IPCCompiler to prevent from generating Gfx::Color const &, which makes replacement easier.
This commit is contained in:
parent
f76c7f3788
commit
bbc149ebb9
28 changed files with 65 additions and 54 deletions
|
@ -20,8 +20,8 @@ public:
|
|||
m_states.append(State());
|
||||
}
|
||||
|
||||
Gfx::Color const& fill_color() const { return state().fill_color; }
|
||||
Gfx::Color const& stroke_color() const { return state().stroke_color; }
|
||||
Gfx::Color fill_color() const { return state().fill_color; }
|
||||
Gfx::Color stroke_color() const { return state().stroke_color; }
|
||||
float stroke_width() const { return state().stroke_width; }
|
||||
|
||||
void set_fill_color(Gfx::Color color) { state().fill_color = color; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue