[Scummvm-cvs-logs] scummvm master -> 0ff44497c77fd37c20918d22b628348fd0f3b5fe
wjp
wjp at usecode.org
Sun May 1 13:52:17 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0ff44497c7 SCI: Round left/right edges in bitsShow to even coords
Commit: 0ff44497c77fd37c20918d22b628348fd0f3b5fe
https://github.com/scummvm/scummvm/commit/0ff44497c77fd37c20918d22b628348fd0f3b5fe
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2011-05-01T04:41:06-07:00
Commit Message:
SCI: Round left/right edges in bitsShow to even coords
This fixes the vertical black line glitch in the QfG3 start menu (#3293351)
Changed paths:
engines/sci/graphics/paint16.cpp
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp
index bb23fb8..5172f7c 100644
--- a/engines/sci/graphics/paint16.cpp
+++ b/engines/sci/graphics/paint16.cpp
@@ -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);
}
More information about the Scummvm-git-logs
mailing list