mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 23:22:52 +00:00
Rename Painter::set_clip_rect() to add_clip_rect().
It was confusing to see multiple calls to set_foo() in a row. Since this is an intersecting operation, let's call it add_clip_rect() instead.
This commit is contained in:
parent
474340b9cd
commit
f249c40aaa
Notes:
sideshowbarker
2024-07-19 14:54:14 +09:00
Author: https://github.com/awesomekling
Commit: f249c40aaa
18 changed files with 28 additions and 28 deletions
|
@ -17,7 +17,7 @@ void GFrame::paint_event(GPaintEvent& event)
|
|||
return;
|
||||
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(event.rect());
|
||||
painter.add_clip_rect(event.rect());
|
||||
|
||||
Color top_left_color;
|
||||
Color bottom_right_color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue