fixed regression bug causing labels not to be aligned properly when near the right border

svn-id: r25665
This commit is contained in:
Nicola Mettifogo 2007-02-17 21:19:55 +00:00
parent b1a63e8a16
commit be878d60db

View File

@ -495,7 +495,7 @@ void jobEraseLabel(void *parm, Job *j) {
if (_di > 190) _di = 190;
if (label->_cnv._width + _si > SCREEN_WIDTH)
_si = SCREEN_WIDTH - _si;
_si = SCREEN_WIDTH - label->_cnv._width;
_vm->_graphics->restoreBackground(Graphics::_labelPosition[1]._x, Graphics::_labelPosition[1]._y, label->_cnv._width, label->_cnv._height);