summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-28 20:38:13 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-28 20:38:13 +0100
commitdbeac6e0930bfc25d7c359ea8eac2fbc9bde54df (patch)
tree5298fbcf075ea2fd7e2b23669df6db844d5584ba
parentc95228b128ea135ab0a931940725fab1ee335837 (diff)
downloadserenity-dbeac6e0930bfc25d7c359ea8eac2fbc9bde54df.zip
LibGUI: Reduce overdraw in GListBox.
-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());