diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-12 13:43:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-12 13:43:37 +0200 |
commit | 9d6c85e6a60bc0ca65a79d30e166ba8482af88aa (patch) | |
tree | 534cf47109c73bf470b9615ba2c83d5c1e2b91b7 /Libraries/LibGUI | |
parent | 0fbcb3c5b63281c53a44cc53948c0396aad4640a (diff) | |
download | serenity-9d6c85e6a60bc0ca65a79d30e166ba8482af88aa.zip |
LibGUI: Remove ancient code for debugging widget underdraw
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r-- | Libraries/LibGUI/Widget.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Libraries/LibGUI/Widget.cpp b/Libraries/LibGUI/Widget.cpp index 1ec63c4820..67be0bfd0a 100644 --- a/Libraries/LibGUI/Widget.cpp +++ b/Libraries/LibGUI/Widget.cpp @@ -225,13 +225,6 @@ void Widget::handle_paint_event(PaintEvent& event) if (fill_with_background_color()) { Painter painter(*this); painter.fill_rect(event.rect(), palette().color(background_role())); - } else { -#ifdef DEBUG_WIDGET_UNDERDRAW - // FIXME: This is a bit broken. - // If the widget is not opaque, let's not mess it up with debugging color. - Painter painter(*this); - painter.fill_rect(rect(), Color::Red); -#endif } paint_event(event); for_each_child_widget([&](auto& child) { |