DIG: Graphics glitch when scrolling
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
The Dig, English DOS version Latest ScummVM CVS snapshot
In the Dig, when you're at the power station beneath the Nexus, if you send the repair drone too far to the left there will be a glitch as the screen scrolls. See the attached screenshot. See the attached screenshot.
One possible culprit is this line from akos.cpp:
if (v1.x < 0 || v1.x >= _outwidth)
In this case, _outwidth is 328. If I change it to
if (v1.x < 0 || v1.x >= _vm->_screenWidth)
it seems to work. But I'm not certain if this is the correct fix.
Ticket imported from: #1042802. Ticket imported from: bugs/1802.