Ticket #8192: nut-renderer-fix.diff

File nut-renderer-fix.diff, 590 bytes (added by eriktorbjorn, 22 years ago)

Patch against a March 31 CVS snapshot

  • scummvm/scumm/nut_renderer.cpp

    diff -ur ScummVM-cvs20030331/scummvm/scumm/nut_renderer.cpp ScummVM-cvs20030331+hack/scummvm/scumm/nut_renderer.cpp
    old new  
    209209                        maskpos = 0;
    210210                        for (int32 tx = 0; tx < width; tx++) {
    211211                                byte pixel = *src++;
    212                                 if (x + tx >= 640 || y + ty >= 480)
     212                                if (x + tx < 0 || x + tx >= _vm->_realWidth || y + ty < 0 || y + ty >= _vm->_realHeight)
    213213                                        continue;
    214214#if 1
    215215                                if (pixel != 0) {