1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibGfx: Make Painter::fill_path() take Path by const reference

Taking a mutable reference here made the API look very strange.
This commit is contained in:
Andreas Kling 2021-09-17 13:41:03 +02:00
parent 8c863ad959
commit 32b9d80ee5
2 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ public:
Nonzero,
EvenOdd,
};
void fill_path(Path&, Color, WindingRule rule = WindingRule::Nonzero);
void fill_path(Path const&, Color, WindingRule rule = WindingRule::Nonzero);
const Font& font() const { return *state().font; }
void set_font(const Font& font) { state().font = &font; }