diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 19:43:46 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | bbc149ebb935532c9382278ed98cf9fe8a616422 (patch) | |
tree | bf9b37fb4947579351f57de87e1377da8413e097 /Userland/Applications/PixelPaint/Tools/EraseTool.cpp | |
parent | f76c7f3788242e8b486c51cd251e6c59179e33dd (diff) | |
download | serenity-bbc149ebb935532c9382278ed98cf9fe8a616422.zip |
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.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/EraseTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/EraseTool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/EraseTool.cpp b/Userland/Applications/PixelPaint/Tools/EraseTool.cpp index 48d489186f..f449a0b3a4 100644 --- a/Userland/Applications/PixelPaint/Tools/EraseTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/EraseTool.cpp @@ -28,7 +28,7 @@ Color EraseTool::color_for(GUI::MouseEvent const&) return Color(255, 255, 255, 0); } -void EraseTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::IntPoint const& point) +void EraseTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color color, Gfx::IntPoint const& point) { if (m_draw_mode == DrawMode::Pencil) { int radius = size() / 2; |