gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r9783: add visual widget to better s


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9783: add visual widget to better show effects of matrices. seems to me that gnash is failing there
Date: Thu, 18 Sep 2008 18:08:09 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9783
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Thu 2008-09-18 18:08:09 +0200
message:
  add visual widget to better show effects of matrices. seems to me that gnash 
is failing there
modified:
  testsuite/misc-ming.all/matrix_test.c
    ------------------------------------------------------------
    revno: 9781.1.2
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-18 18:02:51 +0200
    message:
      Add a child movieclip on a side of the square, to allow for visual
      checks about transforms of it. I'm not sure gnash renderer is getting
      those transformations right really. Next step would be adding pixel
      checking.
    modified:
      testsuite/misc-ming.all/matrix_test.c
    ------------------------------------------------------------
    revno: 9781.1.3
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-18 18:06:36 +0200
    message:
      allow stoppign/resuming playback clicking the mouse
    modified:
      testsuite/misc-ming.all/matrix_test.c
=== modified file 'testsuite/misc-ming.all/matrix_test.c'
--- a/testsuite/misc-ming.all/matrix_test.c     2008-09-18 15:30:37 +0000
+++ b/testsuite/misc-ming.all/matrix_test.c     2008-09-18 16:06:36 +0000
@@ -40,7 +40,7 @@
 add_static_mc(SWFMovie mo, const char* name, int depth, int x, int y, int 
width, int height)
 {
        SWFShape sh;
-       SWFMovieClip mc, mc2;
+       SWFMovieClip mc, mc2, mc3;
        SWFDisplayItem it;
 
        sh = make_fill_square (-(width/2), -(height/2), width, height, 255, 0, 
0, 255, 0, 0);
@@ -51,9 +51,16 @@
        mc2 = newSWFMovieClip(); // child
        SWFMovieClip_add(mc2, (SWFBlock)sh);
        SWFMovieClip_nextFrame(mc2);
-
        it = SWFMovieClip_add(mc, (SWFBlock)mc2);
        SWFDisplayItem_setName(it, "child");
+
+       sh = make_fill_square ((width/4), -(height/8), (width/4), (height/4), 
0, 255, 0, 0, 255, 0);
+       mc3 = newSWFMovieClip(); // child
+       SWFMovieClip_add(mc3, (SWFBlock)sh);
+       SWFMovieClip_nextFrame(mc3);
+       it = SWFMovieClip_add(mc, (SWFBlock)mc3);
+       SWFDisplayItem_setName(it, "face");
+
        SWFMovieClip_nextFrame(mc);
 
        it = SWFMovie_add(mo, (SWFBlock)mc);
@@ -85,6 +92,7 @@
        Ming_init();
        mo = newSWFMovieWithVersion(OUTPUT_VERSION);
        SWFMovie_setDimension(mo, 800, 600);
+       //SWFMovie_setRate (mo, 0.2);
        //SWFMovie_setRate (mo, 2);
        SWFMovie_setRate (mo, 12);
 
@@ -101,6 +109,10 @@
             "       return '' + b.xMin + ','+ b.yMin + ' '+ b.xMax + ',' + 
b.yMax; "
             "   }"
             "};"
+            "onMouseDown = function() {"
+            " if ( playing ) { playing=false; stop(); }"
+            " else { playing=true; play(); }"
+            "};"
             );
 
        SWFMovie_nextFrame(mo); 


reply via email to

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