diff options
| -rw-r--r-- | engines/sci/graphics/gui.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 5caa172d39..1345da7dea 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -275,7 +275,9 @@ void SciGui::display(const char *text, int argc, reg_t *argv) {  	_text->Size(rect, text, -1, width);  	rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);  	if (getSciVersion() >= SCI_VERSION_1_LATE) { -		_gfx->Move(rect.right <= _screen->getWidth() ? 0 : _screen->getWidth() - rect.right, rect.bottom <= _screen->getHeight() ? 0 : _screen->getHeight() - rect.bottom); +		int16 leftPos = rect.right <= _screen->getWidth() ? 0 : _screen->getWidth() - rect.right; +		int16 topPos = rect.bottom <= _screen->getHeight() ? 0 : _screen->getHeight() - rect.bottom; +		_gfx->Move(leftPos, topPos);  		rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);  	}  | 
