Ticket #15241: goose_fix.diff

File goose_fix.diff, 726 bytes (added by sluicebox, 5 months ago)
  • engines/agi/text.cpp

    diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
    index 58dbbb1c4a9..d20f316ee0f 100644
    a b bool TextMgr::isMouseWithinMessageBox() {  
    548548
    549549void TextMgr::closeWindow() {
    550550        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);
    552554        }
    553555        _messageState.dialogue_Open = false;
    554556        _messageState.window_Active = false;