From a4f6f8e0e7019fcf8e3f894cca0cda0ede04ba42 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Sun, 5 Apr 2020 13:13:32 +0200 Subject: [PATCH] QuickShow: Use checkerboard background to show transparency --- Applications/QuickShow/QSWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Applications/QuickShow/QSWidget.cpp b/Applications/QuickShow/QSWidget.cpp index 511bf50ec7..4c4b994ae8 100644 --- a/Applications/QuickShow/QSWidget.cpp +++ b/Applications/QuickShow/QSWidget.cpp @@ -31,11 +31,11 @@ #include #include #include +#include QSWidget::QSWidget() { - set_fill_with_background_color(true); - set_background_color(Color::Black); + set_fill_with_background_color(false); } QSWidget::~QSWidget() @@ -74,6 +74,7 @@ void QSWidget::paint_event(GUI::PaintEvent& event) GUI::Painter painter(*this); painter.add_clip_rect(event.rect()); + painter.fill_rect_with_checkerboard(rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base()); painter.draw_scaled_bitmap(m_bitmap_rect, *m_bitmap, m_bitmap->rect()); }