Skip to content

Commit 5b88cd6

Browse files
FlamefireFlow86
authored andcommitted
Draw background even earlier
1 parent ad2f7c3 commit 5b88cd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/s25main/ingameWindows/IngameWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ void IngameWindow::Draw_()
295295
{
296296
if(isModal_ && !IsActive())
297297
SetActive(true);
298-
298+
if(!isMinimized_)
299+
DrawBackground();
299300
// Black border
300301
// TODO: It would be better if this was included in the windows size. But the controls are added with absolute
301302
// positions so adding the border to the size would move the border imgs inward into the content.
@@ -423,7 +424,6 @@ void IngameWindow::Draw_()
423424
// Client area
424425
if(!isMinimized_)
425426
{
426-
DrawBackground();
427427
Window::Draw_();
428428
DrawContent();
429429
}

0 commit comments

Comments
 (0)