Skip to content

Commit

Permalink
Do transparent blitting of the system graphic frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Apr 19, 2024
1 parent 3e86032 commit d4bf09b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/game_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4bf09b

Please sign in to comment.