[Scummvm-cvs-logs] scummvm master -> 924f1f1fee3f46a6bfcd6182631bdd91f61c279e
m-kiewitz
m_kiewitz at users.sourceforge.net
Sun Jun 8 23:09:42 CEST 2014
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:
924f1f1fee SCI: fix coordination translation for 480x300 mac
Commit: 924f1f1fee3f46a6bfcd6182631bdd91f61c279e
https://github.com/scummvm/scummvm/commit/924f1f1fee3f46a6bfcd6182631bdd91f61c279e
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2014-06-08T23:10:17+02:00
Commit Message:
SCI: fix coordination translation for 480x300 mac
Changed paths:
engines/sci/graphics/screen.cpp
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index 806881c..c5c94d7 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -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;
More information about the Scummvm-git-logs
mailing list