CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/16 16:09:04
Modified files: . : ChangeLog gui : gui.cpp Log message: add class info of hit character. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5414&r2=1.5415 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.126&r2=1.127 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5414 retrieving revision 1.5415 diff -u -b -r1.5414 -r1.5415 --- ChangeLog 16 Jan 2008 15:31:48 -0000 1.5414 +++ ChangeLog 16 Jan 2008 16:09:04 -0000 1.5415 @@ -1,5 +1,6 @@ 2008-01-16 Sandro Santilli <[EMAIL PROTECTED]> + * gui/gui.cpp (getMovieInfo): add class info of hit character. * server/movie_root.cpp (fire_mouse_event): for _droptarget, register closest AS-referenceable ancestor, not topmost character. Makes some progress in the movie 1.swf from comment 6 of bug #20911. Index: gui/gui.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gui.cpp,v retrieving revision 1.126 retrieving revision 1.127 diff -u -b -r1.126 -r1.127 --- gui/gui.cpp 10 Jan 2008 23:13:15 -0000 1.126 +++ gui/gui.cpp 16 Jan 2008 16:09:04 -0000 1.127 @@ -872,7 +872,13 @@ ret->insert(ret->begin(), StringPair("Stage scripts", stage.scriptsDisabled() ? " disabled" : "enabled")); character* ch = stage.getActiveEntityUnderPointer(); - ret->insert(ret->begin(), StringPair("Topmost mouse entity", ch ? ch->getTarget() : "NONE" )); + std::stringstream ss; + if ( ! ch ) ss << "NONE"; + else + { + ss << ch->getTarget() << " (" << typeName(*ch) << ")"; + } + ret->insert(ret->begin(), StringPair("Topmost mouse entity", ss.str())); return ret; } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit