CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi <udog> 07/08/21 15:03:08
Modified files: . : ChangeLog gui : gui.cpp Log message: gui/gui.cpp: Introduce FORCE_REDRAW macro CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4058&r2=1.4059 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.91&r2=1.92 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.4058 retrieving revision 1.4059 diff -u -b -r1.4058 -r1.4059 --- ChangeLog 21 Aug 2007 14:42:11 -0000 1.4058 +++ ChangeLog 21 Aug 2007 15:03:07 -0000 1.4059 @@ -1,3 +1,7 @@ +2007-08-21 Udo Giacomozzi <[EMAIL PROTECTED]> + + * gui/gui.cpp: Introduce FORCE_REDRAW macro + 2007-08-21 Sandro Santilli <[EMAIL PROTECTED]> * server/text.h: documentation bits for text_glyph_record Index: gui/gui.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gui.cpp,v retrieving revision 1.91 retrieving revision 1.92 diff -u -b -r1.91 -r1.92 --- gui/gui.cpp 18 Aug 2007 13:08:15 -0000 1.91 +++ gui/gui.cpp 21 Aug 2007 15:03:08 -0000 1.92 @@ -37,9 +37,16 @@ #include <cstdio> #include <cstring> -/// Define this to have updated regions enclosed in a red rectangle +/// Define this to make sure each frame is fully rendered from ground up +/// even if no motion has been detected in the movie. +//#define FORCE_REDRAW + +/// Define this to have updated regions enclosed in a red rectangle. /// In the future, enabling this might actually use a runtime flag /// as an additional conditional. +/// This has the side effect that all frames will be re-rendered completely +/// but in contrast to FORCE_REDRAW it won't re-render when no motion +/// has been detected in the movie (for example when the movie is stopped). /// //#define ENABLE_REGION_UPDATES_DEBUGGING 1 @@ -355,7 +362,11 @@ bool redraw_flag; // Should the frame be rendered completely, even if it did not change? +#ifdef FORCE_REDRAW + redraw_flag = true; +#else redraw_flag = _redraw_flag || want_redraw(); +#endif // reset class member if we do a redraw now if (redraw_flag) _redraw_flag=false; _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit