Ticket #8130: costume-clipping.diff

File costume-clipping.diff, 1.5 KB (added by eriktorbjorn, 21 years ago)

Patch against a November 16 CVS snapshot

  • scummvm/scumm/costume.cpp

    diff -ur ScummVM-cvs20021116/scummvm/scumm/costume.cpp ScummVM-cvs20021116+hack/scummvm/scumm/costume.cpp
    old new  
    584584                                _scaleIndexX = t + _scaleIndexXStep;
    585585                                if (cost_scaleTable[t] < _scaleX) {
    586586                                        _xpos += _scaleIndexXStep;
    587                                         if (_xpos >= _vm->_realWidth)
     587                                        if (_xpos < 0 || _xpos >= _vm->_realWidth)
    588588                                                return;
    589589                                        maskbit = revBitMask[_xpos & 7];
    590590                                        _backbuff_ptr += _scaleIndexXStep;
     
    646646                                _scaleIndexX = t + _scaleIndexXStep;
    647647                                if (cost_scaleTable[t] < _scaleX) {
    648648                                        _xpos += _scaleIndexXStep;
    649                                         if (_xpos >= _vm->_realWidth)
     649                                        if (_xpos < 0 || _xpos >= _vm->_realWidth)
    650650                                                return;
    651651                                        maskbit = revBitMask[_xpos & 7];
    652652                                        _backbuff_ptr += _scaleIndexXStep;
     
    707707                                _scaleIndexX = t + _scaleIndexXStep;
    708708                                if (cost_scaleTable[t] < _scaleX) {
    709709                                        _xpos += _scaleIndexXStep;
    710                                         if (_xpos >= _vm->_realWidth)
     710                                        if (_xpos < 0 || _xpos >= _vm->_realWidth)
    711711                                                return;
    712712                                        _backbuff_ptr += _scaleIndexXStep;
    713713                                }
     
    11801180                                _scaleIndexX = t + _scaleIndexXStep;
    11811181                                if (cost_scaleTable[t] < _scaleX) {
    11821182                                        _xpos += _scaleIndexXStep;
    1183                                         if (_xpos >= _vm->_realWidth)
     1183                                        if (_xpos < 0 || _xpos >= _vm->_realWidth)
    11841184                                                return;
    11851185                                        maskbit = revBitMask[_xpos & 7];
    11861186                                        _backbuff_ptr += _scaleIndexXStep;