1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibGUI: Reduce overdraw in GListBox.

This commit is contained in:
Andreas Kling 2019-01-28 20:38:13 +01:00
parent c95228b128
commit dbeac6e093

View file

@ -21,9 +21,8 @@ void GListBox::paint_event(GPaintEvent&)
{ {
Painter painter(*this); Painter painter(*this);
// FIXME: Reduce overdraw. painter.fill_rect({ rect().x() + 1, rect().y() + 1, rect().width() - 2, rect().height() - 2 }, background_color());
painter.fill_rect(rect(), Color::White); painter.draw_rect(rect(), foreground_color());
painter.draw_rect(rect(), Color::Black);
if (is_focused()) if (is_focused())
painter.draw_focus_rect(rect()); painter.draw_focus_rect(rect());