[Scummvm-cvs-logs] SF.net SVN: scummvm:[43942] scummvm/trunk/engines/sci
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Sep 4 17:40:15 CEST 2009
Revision: 43942
http://scummvm.svn.sourceforge.net/scummvm/?rev=43942&view=rev
Author: thebluegr
Date: 2009-09-04 15:40:15 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
- Allow SCI games to set the cursor position when it's hidden once again
- Changed the message shown when the game tries to move the cursor off the screen bounds from a warning to a debug message, to avoid spam in games that do this behavior, e.g. the Camelot demo
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
scummvm/trunk/engines/sci/gfx/operations.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-09-04 15:04:13 UTC (rev 43941)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-09-04 15:40:15 UTC (rev 43942)
@@ -300,7 +300,7 @@
gfxop_set_pointer_cursor(s->gfx_state, cursor);
// Set pointer position, if requested
- if (argc >= 4 && cursor != GFXOP_NO_POINTER) {
+ if (argc >= 4) {
Common::Point newPos = Common::Point(argv[2].toSint16() + s->port->_bounds.x, argv[3].toSint16() + s->port->_bounds.y);
gfxop_set_pointer_position(s->gfx_state, newPos);
}
Modified: scummvm/trunk/engines/sci/gfx/operations.cpp
===================================================================
--- scummvm/trunk/engines/sci/gfx/operations.cpp 2009-09-04 15:04:13 UTC (rev 43941)
+++ scummvm/trunk/engines/sci/gfx/operations.cpp 2009-09-04 15:40:15 UTC (rev 43942)
@@ -1109,7 +1109,7 @@
state->pointer_pos = pos;
if (pos.x > 320 || pos.y > 200) {
- warning("[GFX] Attempt to place pointer at invalid coordinates (%d, %d)", pos.x, pos.y);
+ debugC("[GFX] Attempt to place pointer at invalid coordinates (%d, %d)\n", pos.x, pos.y);
return; // Not fatal
}
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