1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:25:07 +00:00

LibGUI: Remove ancient code for debugging widget underdraw

This commit is contained in:
Andreas Kling 2020-05-12 13:43:37 +02:00
parent 0fbcb3c5b6
commit 9d6c85e6a6

View file

@ -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) {