SCI: Round left/right edges in bitsShow to even coords

This fixes the vertical black line glitch in the QfG3 start menu (#3293351)
This commit is contained in:
Willem Jan Palenstijn 2011-04-26 23:48:36 +02:00
parent 204a9c2e51
commit 0ff44497c7

View File

@ -297,6 +297,11 @@ void GfxPaint16::bitsShow(const Common::Rect &rect) {
return;
_ports->offsetRect(workerRect);
// We adjust the left/right coordinates to even coordinates
workerRect.left &= 0xFFFE; // round down
workerRect.right = (workerRect.right + 1) & 0xFFFE; // round up
_screen->copyRectToScreen(workerRect);
}