Skip to content

Commit

Permalink
SCI: Round left/right edges in bitsShow to even coords
Browse files Browse the repository at this point in the history
This fixes the vertical black line glitch in the QfG3 start menu (#3293351)
  • Loading branch information
wjp committed May 1, 2011
1 parent 204a9c2 commit 0ff4449
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/sci/graphics/paint16.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0ff4449

Please sign in to comment.