aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-10 18:18:12 +0000
committerMartin Kiewitz2009-10-10 18:18:12 +0000
commit0a3e03a1669a5c51edbfcb078d58122d13277ecc (patch)
treeb2229a44ea5ae0243654ffff09a3e4edeb87f036
parent17ee52170789b6d2485cf096309189f7c0bdcb2e (diff)
downloadscummvm-rg350-0a3e03a1669a5c51edbfcb078d58122d13277ecc.tar.gz
scummvm-rg350-0a3e03a1669a5c51edbfcb078d58122d13277ecc.tar.bz2
scummvm-rg350-0a3e03a1669a5c51edbfcb078d58122d13277ecc.zip
SCI/newgui: removed hardcoded screen height/width
svn-id: r44881
-rw-r--r--engines/sci/gui/gui.cpp2
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);