summaryrefslogtreecommitdiff
path: root/LibGUI/GListBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GListBox.cpp')
-rw-r--r--LibGUI/GListBox.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/LibGUI/GListBox.cpp b/LibGUI/GListBox.cpp
index f5a357792a..b5a5e738c1 100644
--- a/LibGUI/GListBox.cpp
+++ b/LibGUI/GListBox.cpp
@@ -21,9 +21,8 @@ void GListBox::paint_event(GPaintEvent&)
{
Painter painter(*this);
- // FIXME: Reduce overdraw.
- painter.fill_rect(rect(), Color::White);
- painter.draw_rect(rect(), Color::Black);
+ painter.fill_rect({ rect().x() + 1, rect().y() + 1, rect().width() - 2, rect().height() - 2 }, background_color());
+ painter.draw_rect(rect(), foreground_color());
if (is_focused())
painter.draw_focus_rect(rect());