Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gemrb/core/GUI/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ void Window::DrawAfterSubviews(const Region& /*drawFrame*/, const Region& /*clip
{
if (IsDisabled()) {
Region winrgn(Point(), Dimensions());
if (scaleBuffer) {
winrgn.size = scaleBuffer->Rect().size;
}

VideoDriver->DrawRect(winrgn, ColorBlack, true, BlitFlags::HALFTRANS | BlitFlags::BLENDED);
}
}
Expand Down
11 changes: 7 additions & 4 deletions gemrb/core/GUI/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,13 @@ void WindowManager::DrawWindows() const
// draw the game window now (beneath everything else); it's not part of the windows collection
if (gameWin->IsVisible()) {
auto gameControl = core->GetGameControl();
if (gameControl->GetScalePercent() != 100) {
gameWin->UseScaleBuffer(gameControl->GetScalePercent());
} else {
gameWin->DropScaleBuffer();
if (gameControl) {
auto scale = gameControl->GetScalePercent();
if (scale != 100) {
gameWin->UseScaleBuffer(scale);
} else {
gameWin->DropScaleBuffer();
}
}

gameWin->Draw();
Expand Down
Loading