[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog gui/gui.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog gui/gui.cpp |
Date: |
Wed, 06 Dec 2006 15:18:51 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/12/06 15:18:51
Modified files:
. : ChangeLog
gui : gui.cpp
Log message:
* gui/gui.cpp (advance_movie): add support for sequentially
displaying all frames of a movie (compile-time define).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1870&r2=1.1871
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.54&r2=1.55
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1870
retrieving revision 1.1871
diff -u -b -r1.1870 -r1.1871
--- ChangeLog 6 Dec 2006 14:39:01 -0000 1.1870
+++ ChangeLog 6 Dec 2006 15:18:51 -0000 1.1871
@@ -1,5 +1,7 @@
2006-12-06 Sandro Santilli <address@hidden>
+ * gui/gui.cpp (advance_movie): add support for sequentially
+ displaying all frames of a movie (compile-time define).
* gui/gui.cpp (display): when debugging invalidated bounds
show only the last invalidated region. this slows the
rendering, but when debugging you probably don't care.
Index: gui/gui.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- gui/gui.cpp 6 Dec 2006 14:39:01 -0000 1.54
+++ gui/gui.cpp 6 Dec 2006 15:18:51 -0000 1.55
@@ -337,8 +337,22 @@
gnash::movie_root* m = gnash::get_current_root();
+// Define REVIEW_ALL_FRAMES to have *all* frames
+// consequencially displaied. Useful for debugging.
+//#define REVIEW_ALL_FRAMES 1
+
+#ifndef REVIEW_ALL_FRAMES
// Advance movie by one frame
m->advance(1.0);
+#else
+ size_t cur_frame = m->get_root_movie()->get_current_frame();
+ size_t tot_frames = m->get_root_movie()->get_frame_count();
+ m->advance(1.0);
+ m->get_movie_definition()->ensure_frame_loaded(tot_frames);
+ m->goto_frame(cur_frame+1);
+ m->set_play_state(gnash::sprite_instance::PLAY);
+ log_msg("Frame %d", m->get_current_frame());
+#endif
gui->display(m);