diff options
| author | Martin Kiewitz | 2009-10-10 18:18:12 +0000 |
|---|---|---|
| committer | Martin Kiewitz | 2009-10-10 18:18:12 +0000 |
| commit | 0a3e03a1669a5c51edbfcb078d58122d13277ecc (patch) | |
| tree | b2229a44ea5ae0243654ffff09a3e4edeb87f036 | |
| parent | 17ee52170789b6d2485cf096309189f7c0bdcb2e (diff) | |
| download | scummvm-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.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); |
