gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog server/swf/tag_loaders.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/swf/tag_loaders.cpp
Date: Tue, 22 May 2007 20:23:33 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/22 20:23:33

Modified files:
        .              : ChangeLog 
        server/swf     : tag_loaders.cpp 

Log message:
                * server/swf/tag_loaders.cpp (place_object_2_loader): don't
                  add a TimelineDepth if read depth is out of static depth zone
                  boundaries (warn user about it too...).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3310&r2=1.3311
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.104&r2=1.105

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3310
retrieving revision 1.3311
diff -u -b -r1.3310 -r1.3311
--- ChangeLog   22 May 2007 19:38:54 -0000      1.3310
+++ ChangeLog   22 May 2007 20:23:32 -0000      1.3311
@@ -1,5 +1,8 @@
 2007-05-22 Sandro Santilli <address@hidden>
 
+       * server/swf/tag_loaders.cpp (place_object_2_loader): don't
+         add a TimelineDepth if read depth is out of static depth zone 
+         boundaries (warn user about it too...).
        * gui/Player.cpp (run): use movie url for window title (-u).
          Useful when reading stdin...
        * server/parser/shape_character_def.cpp (read): don't force

Index: server/swf/tag_loaders.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -b -r1.104 -r1.105
--- server/swf/tag_loaders.cpp  21 May 2007 11:11:39 -0000      1.104
+++ server/swf/tag_loaders.cpp  22 May 2007 20:23:33 -0000      1.105
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: tag_loaders.cpp,v 1.104 2007/05/21 11:11:39 strk Exp $ */
+/* $Id: tag_loaders.cpp,v 1.105 2007/05/22 20:23:33 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -787,7 +787,16 @@
     ch->read(in, tag, m->get_version());
 
     m->add_execute_tag(ch);
+
+    int depth = ch->getDepth();
+    if ( depth < 0 && depth >= character::staticDepthOffset )
+    {
     m->addTimelineDepth(ch->getDepth());
+    }
+    else
+    {
+       log_debug("PlaceObject2Tag depth %d is out of static depth zone. Won't 
register its TimelineDepth.", depth);
+    }
 }
 
 // Create and initialize a sprite, and add it to the movie.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]