CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi <udog> 07/09/03 11:46:42
Modified files: . : ChangeLog backend : render_handler_agg_style.h render_handler_agg.cpp Log message: render_handler_agg_style.h: focal gradients now render correctly CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4199&r2=1.4200 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg_style.h?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.106&r2=1.107 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.4199 retrieving revision 1.4200 diff -u -b -r1.4199 -r1.4200 --- ChangeLog 3 Sep 2007 11:41:54 -0000 1.4199 +++ ChangeLog 3 Sep 2007 11:46:41 -0000 1.4200 @@ -1,3 +1,7 @@ +2007-09-03 Udo Giacomozzi <[EMAIL PROTECTED]> + + * render_handler_agg_style.h: focal gradients now render correctly + 2007-09-03 Sandro Santilli <[EMAIL PROTECTED]> * server/sprite_instance.cpp (advance_sprite): don't call Index: backend/render_handler_agg_style.h =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg_style.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- backend/render_handler_agg_style.h 3 Sep 2007 10:08:55 -0000 1.24 +++ backend/render_handler_agg_style.h 3 Sep 2007 11:46:42 -0000 1.25 @@ -655,17 +655,14 @@ // move the center of the focal fill (not it's focal point) to where it // should be. gnash::matrix transl; - transl.concatenate_translation(32.0f, -32.0f); + transl.concatenate_translation(-32.0f, -32.0f); transl.concatenate(mat); - // TODO: There seems to be something wrong with the translation, - // needs to be fixed (see focal-gradient.swf) - st_type* st = new st_type(fs, transl, cx, 64/2); // re-initialize focal gradient settings gradient_adaptor_type& adaptor = st->get_gradient_adaptor(); - adaptor.init(100.0, fs.get_focal_point()*100.0, 0.0); + adaptor.init(32.0, fs.get_focal_point()*32.0, 0.0); m_styles.push_back(st); } Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.106 retrieving revision 1.107 diff -u -b -r1.106 -r1.107 --- backend/render_handler_agg.cpp 3 Sep 2007 10:09:42 -0000 1.106 +++ backend/render_handler_agg.cpp 3 Sep 2007 11:46:42 -0000 1.107 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.106 2007/09/03 10:09:42 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.107 2007/09/03 11:46:42 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -48,7 +48,7 @@ solid fills COMPLETE linear gradients COMPLETE radial gradients COMPLETE - focal gradients IN PROGRESS + focal gradients COMPLETE ext. spread modes NOT IMPLEMENTED * linear RGB mode NOT IMPLEMENTED * bitmaps, tiled COMPLETE @@ -57,9 +57,8 @@ bitmaps, hard COMPLETE color xform COMPLETE - * focal gradients (introduced in Flash 8) and similar special fill styles - are not yet supported by Gnash itself AFAIK, but AGG supports them and it - should be easy to add them. + * special fill styles are not yet supported by Gnash itself AFAIK, but AGG + supports them and it should be easy to add them. fonts COMPLETE _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit