aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-22 18:12:25 +0000
committerMartin Kiewitz2010-04-22 18:12:25 +0000
commit1243217547de55a9a83a2fadf88e73406b2769c6 (patch)
tree7a73df7417538016a861ff79f27e042f645027d7 /engines/sci
parent4fbea9d02dc083b78ec95ec29ccd88c986d47e29 (diff)
downloadscummvm-rg350-1243217547de55a9a83a2fadf88e73406b2769c6.tar.gz
scummvm-rg350-1243217547de55a9a83a2fadf88e73406b2769c6.tar.bz2
scummvm-rg350-1243217547de55a9a83a2fadf88e73406b2769c6.zip
SCI: added additional comment for setOrigin() commit (from waltervn), after doing some test with sierra interpreter
svn-id: r48775
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/ports.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 8802d1ccb2..f3f834e0d8 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -389,6 +389,8 @@ Port *GfxPorts::getPort() {
void GfxPorts::setOrigin(int16 left, int16 top) {
// This looks fishy, but it's exactly what sierra did. They removed last bit of left in their interpreter
+ // It seems sierra did it for EGA byte alignment (EGA uses 1 byte for 2 pixels) and left it in their interpreter even
+ // when going VGA.
_curPort->left = left & 0x7FFE;
_curPort->top = top;
}