Browse Source

LibGUI: Remove ancient code for debugging widget underdraw

Andreas Kling 5 years ago
parent
commit
9d6c85e6a6
1 changed files with 0 additions and 7 deletions
  1. 0 7
      Libraries/LibGUI/Widget.cpp

+ 0 - 7
Libraries/LibGUI/Widget.cpp

@@ -225,13 +225,6 @@ void Widget::handle_paint_event(PaintEvent& event)
     if (fill_with_background_color()) {
     if (fill_with_background_color()) {
         Painter painter(*this);
         Painter painter(*this);
         painter.fill_rect(event.rect(), palette().color(background_role()));
         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);
     paint_event(event);
     for_each_child_widget([&](auto& child) {
     for_each_child_widget([&](auto& child) {