From 6972f9c57e8eaba3acea99350dc8765c15919257 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Fri, 19 Apr 2024 12:10:41 +0200 Subject: [PATCH] Do transparent blitting of the system graphic frame Fix #2961 --- src/game_windows.cpp | 2 ++ src/window.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game_windows.cpp b/src/game_windows.cpp index de678dc2170..2a3850722a5 100644 --- a/src/game_windows.cpp +++ b/src/game_windows.cpp @@ -355,6 +355,8 @@ void Game_Windows::Window_User::Refresh(bool& async_wait) { window->SetVisible(false); BitmapRef system; + // FIXME: Transparency setting is currently not applied to the system graphic + // Disabling transparency breaks the rendering of the system graphic if (!data.system_name.empty()) { system = Cache::System(data.system_name); } else { diff --git a/src/window.cpp b/src/window.cpp index 810e7f580c2..6fc4dcba4bf 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -178,7 +178,7 @@ void Window::Draw(Bitmap& dst) { void Window::RefreshBackground() { background_needs_refresh = false; - BitmapRef bitmap = Bitmap::Create(width, height, false); + BitmapRef bitmap = Bitmap::Create(width, height); if (stretch) { bitmap->StretchBlit(*windowskin, Rect(0, 0, 32, 32), 255);