CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/01/31 14:15:58
Modified files:
server : sprite_instance.cpp
Log message:
make hit test queries less noisy
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.461&r2=1.462
Patches:
Index: sprite_instance.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v
retrieving revision 1.461
retrieving revision 1.462
diff -u -b -r1.461 -r1.462
--- sprite_instance.cpp 29 Jan 2008 12:31:10 -0000 1.461
+++ sprite_instance.cpp 31 Jan 2008 14:15:57 -0000 1.462
@@ -77,6 +77,7 @@
//#define GNASH_DEBUG_TIMELINE 1
//#define GNASH_DEBUG_REPLACE 1
//#define DEBUG_DYNTEXT_VARIABLES 1
+//#define GNASH_DEBUG_HITTEST 1
// Defining the following macro you'll get a DEBUG lien
// for each call to the drawing API, in a format which is
@@ -3438,13 +3439,17 @@
if ( isDynamicMask() && ! can_handle_mouse_event() )
{
// see testsuite/misc-ming.all/masks_test.swf
+#ifdef GNASH_DEBUG_HITTEST
log_debug("%s is a dynamic mask and can't handle mouse events, no point
will hit it", getTarget().c_str());
+#endif
return false;
}
character* mask = getMask(); // dynamic one
if ( mask && mask->get_visible() && ! mask->pointInShape(x, y) )
{
+#ifdef GNASH_DEBUG_HITTEST
log_debug("%s is dynamically masked by %s, which doesn't hit point %g,%g",
getTarget().c_str(), mask->getTarget().c_str(), x, y);
+#endif
return false;
}
VisibleShapeContainerFinder finder(x, y);
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit