[Scummvm-cvs-logs] SF.net SVN: scummvm:[44881] scummvm/trunk/engines/sci/gui/gui.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sat Oct 10 20:18:12 CEST 2009
Revision: 44881
http://scummvm.svn.sourceforge.net/scummvm/?rev=44881&view=rev
Author: m_kiewitz
Date: 2009-10-10 18:18:12 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
SCI/newgui: removed hardcoded screen height/width
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui.cpp
Modified: scummvm/trunk/engines/sci/gui/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui.cpp 2009-10-10 17:40:29 UTC (rev 44880)
+++ scummvm/trunk/engines/sci/gui/gui.cpp 2009-10-10 18:18:12 UTC (rev 44881)
@@ -225,7 +225,7 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list