diff options
| -rw-r--r-- | engines/sci/gui/gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index d4b0a20b1d..e0cfbb8b27 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -225,7 +225,7 @@ void SciGui::display(const char *text, int argc, reg_t *argv) { // now drawing the text _gfx->TextSize(rect, text, -1, width); - _gfx->Move((orect->left <= 320 ? 0 : 320 - orect->left), (orect->top <= 200 ? 0 : 200 - orect->top)); // move port to (0,0) + _gfx->Move((orect->left <= _screen->_width ? 0 : _screen->_width - orect->left), (orect->top <= _screen->_height ? 0 : _screen->_height - orect->top)); // move port to (0,0) rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop); // if (bSaveUnder) // _acc = _gfx->SaveBits(rect, 1); |
