SCI: Fixed bug #3041153 - "SCI Fanmade Games: Message window glitch"

svn-id: r52224
This commit is contained in:
Filippos Karapetis 2010-08-20 12:24:48 +00:00
parent 087a15ae0e
commit 273a9eb036

View File

@ -510,7 +510,8 @@ 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;
// Fan made games do not compensate for this - fixes bug #3041153.
_curPort->left = (g_sci->getGameId() != GID_FANMADE) ? left & 0x7FFE : left;
_curPort->top = top;
}