[Scummvm-cvs-logs] SF.net SVN: scummvm: [26335] scummvm/trunk/engines/sky/logic.cpp
lavosspawn at users.sourceforge.net
lavosspawn at users.sourceforge.net
Sun Apr 1 02:13:54 CEST 2007
Revision: 26335
http://scummvm.svn.sourceforge.net/scummvm/?rev=26335&view=rev
Author: lavosspawn
Date: 2007-03-31 17:13:54 -0700 (Sat, 31 Mar 2007)
Log Message:
-----------
Fixed setFocusRectangle code. At least I think I did, I don't know where it came from and I can't test it either. But it looked rather broken.
Modified Paths:
--------------
scummvm/trunk/engines/sky/logic.cpp
Modified: scummvm/trunk/engines/sky/logic.cpp
===================================================================
--- scummvm/trunk/engines/sky/logic.cpp 2007-04-01 00:00:28 UTC (rev 26334)
+++ scummvm/trunk/engines/sky/logic.cpp 2007-04-01 00:13:54 UTC (rev 26335)
@@ -2513,12 +2513,11 @@
if (SkyEngine::isCDVersion())
speechFileFound = _skySound->startSpeech((uint16)textNum);
-
- // Calculate the point where the character is
- int x = (((uint32) (target->xcood)) * GAME_SCREEN_WIDTH) >> 9;
- int y = ((((uint32) (target->ycood)) * GAME_SCREEN_HEIGHT) >> 9);
// Set the focus region to that area
+ // Calculate the point where the character is
+ int x = target->xcood - TOP_LEFT_X;
+ int y = target->ycood - TOP_LEFT_Y;
// TODO: Make the box size change based on the object that has the focus
Common::Rect rect(x - 96, y - 64, x + 96, y + 64);
_skyScreen->setFocusRectangle(rect);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list