[Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.80,2.81

Max Horn fingolfin at users.sourceforge.net
Wed Jan 7 18:17:00 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv18593

Modified Files:
	charset.cpp 
Log Message:
Fix for bug #803381 (COMI: Text cut off)

Index: charset.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/charset.cpp,v
retrieving revision 2.80
retrieving revision 2.81
diff -u -d -r2.80 -r2.81
--- charset.cpp	6 Jan 2004 12:45:30 -0000	2.80
+++ charset.cpp	8 Jan 2004 02:16:27 -0000	2.81
@@ -1298,12 +1298,15 @@
 	_current->drawShadowChar(chr, _left, _top - _vm->_screenTop, _color, !_ignoreCharsetMask);
 	_vm->markRectAsDirty(kMainVirtScreen, shadow_left, shadow_right, shadow_top, shadow_bottom, 0);
 
+	if (_str.left > _left)
+		_str.left = _left;
+
 	_left += width;
 
-	if (shadow_right > _str.right)
+	if (_str.right < shadow_right )
 		_str.right = shadow_right;
 
-	if (shadow_bottom > _str.bottom)
+	if (_str.bottom < shadow_bottom)
 		_str.bottom = shadow_bottom;
 }
 





More information about the Scummvm-git-logs mailing list