Skip to content

Commit

Permalink
SCI: fix coordination translation for 480x300 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kiewitz committed Jun 8, 2014
1 parent a8d1454 commit 924f1f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/sci/graphics/screen.cpp
Expand Up @@ -778,6 +778,10 @@ void GfxScreen::adjustBackUpscaledCoordinates(int16 &y, int16 &x, Sci32ViewNativ
}

switch (_upscaledHires) {
case GFX_SCREEN_UPSCALED_480x300:
x = (x << 1) / 3;
y = (y << 1) / 3;
break;
case GFX_SCREEN_UPSCALED_640x400:
x /= 2;
y /= 2;
Expand Down

0 comments on commit 924f1f1

Please sign in to comment.