CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/08 16:58:42
Modified files: . : ChangeLog server : sprite_instance.cpp Log message: don't ignore second argument (we miss a test for this, incredibly). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5342&r2=1.5343 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.432&r2=1.433 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5342 retrieving revision 1.5343 diff -u -b -r1.5342 -r1.5343 --- ChangeLog 8 Jan 2008 16:36:55 -0000 1.5342 +++ ChangeLog 8 Jan 2008 16:58:41 -0000 1.5343 @@ -1,5 +1,10 @@ 2008-01-08 Sandro Santilli <[EMAIL PROTECTED]> + * server/sprite_instance.cpp (sprite_beginFill): don't ignore + second argument (we miss a test for this, incredibly). + +2008-01-08 Sandro Santilli <[EMAIL PROTECTED]> + * server/sprite_instance.cpp (loadMovie): properly compute level number when we're the root movie. * testsuite/misc-mtasc.all/: Makefile.am, level5.as, level87.as, Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.432 retrieving revision 1.433 diff -u -b -r1.432 -r1.433 --- server/sprite_instance.cpp 8 Jan 2008 16:36:55 -0000 1.432 +++ server/sprite_instance.cpp 8 Jan 2008 16:58:42 -0000 1.433 @@ -81,7 +81,7 @@ // Defining the following macro you'll get a DEBUG lien // for each call to the drawing API, in a format which is // easily re-compilable to obtain a smaller testcase -//#define DEBUG_DRAWING_API 1 +#define DEBUG_DRAWING_API 1 // Forward declarations static as_object* getMovieClipInterface(); @@ -1300,6 +1300,11 @@ g = boost::uint8_t( (rgbval&0x00FF00) >> 8); b = boost::uint8_t( (rgbval&0x0000FF) ); + if ( fn.nargs > 1 ) + { + a = 255 * iclamp(fn.arg(1).to_int(), 0, 100) / 100; + } + } rgba color(r, g, b, a); _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit