Ticket #8192: nut-renderer-fix.diff
File nut-renderer-fix.diff, 590 bytes (added by , 22 years ago) |
---|
-
scummvm/scumm/nut_renderer.cpp
diff -ur ScummVM-cvs20030331/scummvm/scumm/nut_renderer.cpp ScummVM-cvs20030331+hack/scummvm/scumm/nut_renderer.cpp
old new 209 209 maskpos = 0; 210 210 for (int32 tx = 0; tx < width; tx++) { 211 211 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) 213 213 continue; 214 214 #if 1 215 215 if (pixel != 0) {