mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
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:
parent
204a9c2e51
commit
0ff44497c7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user