mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
Painter: Remove unused draw_focus_rect().
This commit is contained in:
parent
922391e772
commit
1af9b6f102
2 changed files with 0 additions and 10 deletions
|
@ -547,15 +547,6 @@ void Painter::draw_line(const Point& p1, const Point& p2, Color color)
|
|||
}
|
||||
}
|
||||
|
||||
void Painter::draw_focus_rect(const Rect& rect)
|
||||
{
|
||||
Rect focus_rect = rect;
|
||||
focus_rect.move_by(1, 1);
|
||||
focus_rect.set_width(focus_rect.width() - 2);
|
||||
focus_rect.set_height(focus_rect.height() - 2);
|
||||
draw_rect(focus_rect, Color::from_rgb(0x84351a));
|
||||
}
|
||||
|
||||
void Painter::add_clip_rect(const Rect& rect)
|
||||
{
|
||||
state().clip_rect.intersect(rect.translated(m_clip_origin.location()));
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
void draw_bitmap(const Point&, const GlyphBitmap&, Color = Color());
|
||||
void set_pixel(const Point&, Color);
|
||||
void draw_line(const Point&, const Point&, Color);
|
||||
void draw_focus_rect(const Rect&);
|
||||
void draw_scaled_bitmap(const Rect& dst_rect, const GraphicsBitmap&, const Rect& src_rect);
|
||||
void blit(const Point&, const GraphicsBitmap&, const Rect& src_rect, float opacity = 1.0f);
|
||||
void blit_dimmed(const Point&, const GraphicsBitmap&, const Rect& src_rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue