From b8c474ff32541a3d290b77d99a295965605723d5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 11 Apr 2024 19:42:14 +0200 Subject: [PATCH] Add support for splash screen image transparency --- gtk2_ardour/splash.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc index 908d137360..e82fbf3438 100644 --- a/gtk2_ardour/splash.cc +++ b/gtk2_ardour/splash.cc @@ -238,6 +238,10 @@ Splash::expose (GdkEventExpose* ev) { RefPtr window = darea.get_window(); + /* clear background (for transparent splash images */ + Glib::RefPtr bg = get_style()->get_bg_gc (STATE_NORMAL); + window->draw_rectangle(bg, true, ev->area.x, ev->area.y, ev->area.width, ev->area.height) + /* note: height & width need to be constrained to the pixbuf size in case a WM provides us with a screwy allocation */