diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 58dbbb1c4a9..d20f316ee0f 100644
a
|
b
|
bool TextMgr::isMouseWithinMessageBox() {
|
548 | 548 | |
549 | 549 | void TextMgr::closeWindow() { |
550 | 550 | if (_messageState.window_Active) { |
551 | | _gfx->render_Block(_messageState.backgroundPos_x, _messageState.backgroundPos_y, _messageState.backgroundSize_Width, _messageState.backgroundSize_Height); |
| 551 | int16 x = _messageState.backgroundPos_x; |
| 552 | int16 y = MAX<int16>(0, _messageState.backgroundPos_y); |
| 553 | _gfx->render_Block(x, y, _messageState.backgroundSize_Width, _messageState.backgroundSize_Height); |
552 | 554 | } |
553 | 555 | _messageState.dialogue_Open = false; |
554 | 556 | _messageState.window_Active = false; |