gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/asobj/SoundGst.cpp serve...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/asobj/SoundGst.cpp serve...
Date: Mon, 30 Jul 2007 18:38:15 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/07/30 18:38:15

Modified files:
        .              : ChangeLog 
        server/asobj   : SoundGst.cpp 
        server/parser  : edit_text_character_def.h 
        testsuite/actionscript.all: TextField.as 

Log message:
                * server/asobj/SoundGst.cpp (getPosition): fix typo (len=>pos).
                * server/parser/edit_text_character_def.h: use device fonts
                  by default (matches the comment near it, was just a typo).
                  Fixes dynamic textfields using device fonts.
                * testsuite/actionscript.all/TextField.as: expect one failure
                  less.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3871&r2=1.3872
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/SoundGst.cpp?cvsroot=gnash&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/edit_text_character_def.h?cvsroot=gnash&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.12&r2=1.13

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3871
retrieving revision 1.3872
diff -u -b -r1.3871 -r1.3872
--- ChangeLog   30 Jul 2007 17:22:01 -0000      1.3871
+++ ChangeLog   30 Jul 2007 18:38:14 -0000      1.3872
@@ -1,3 +1,13 @@
+2007-07-29 Sandro Santilli <address@hidden>
+
+
+       * server/asobj/SoundGst.cpp (getPosition): fix typo (len=>pos).
+       * server/parser/edit_text_character_def.h: use device fonts
+         by default (matches the comment near it, was just a typo).
+         Fixes dynamic textfields using device fonts.
+       * testsuite/actionscript.all/TextField.as: expect one failure
+         less.
+
 2007-07-30 Sergio Costas
 
        * backend/sound_handler_gst.cpp: Use the audioconverter element

Index: server/asobj/SoundGst.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/SoundGst.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- server/asobj/SoundGst.cpp   30 Jul 2007 09:05:51 -0000      1.11
+++ server/asobj/SoundGst.cpp   30 Jul 2007 18:38:15 -0000      1.12
@@ -346,7 +346,7 @@
        ret = gst_element_get_state (GST_ELEMENT (pipeline), &current, 
&pending, 0);
 
        if (current != GST_STATE_NULL && gst_element_query_position (pipeline, 
&fmt, &pos)) {
-               return static_cast<unsigned int>(len / GST_MSECOND);
+               return static_cast<unsigned int>(pos / GST_MSECOND);
        } else {
                return 0;
        }

Index: server/parser/edit_text_character_def.h
===================================================================
RCS file: /sources/gnash/gnash/server/parser/edit_text_character_def.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- server/parser/edit_text_character_def.h     24 Jul 2007 17:41:34 -0000      
1.18
+++ server/parser/edit_text_character_def.h     30 Jul 2007 18:38:15 -0000      
1.19
@@ -62,9 +62,9 @@
                m_no_select(false),
                m_border(false),
                m_html(false),
-               m_use_outlines(true), // For an SWF-defined textfield we'll read
+               m_use_outlines(false), // For an SWF-defined textfield we'll 
read
                                      // this from the tag. Dynamic textfields 
should
-                                     // use device fonts by default.
+                                      // use device fonts by default (so not 
use outline ones)
                m_font_id(-1),
                m_font(NULL),
                m_text_height(1), // TODO: initialize to a meaningful value 
(see sprite_instance::add_textfield)

Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- testsuite/actionscript.all/TextField.as     26 Jul 2007 03:41:19 -0000      
1.12
+++ testsuite/actionscript.all/TextField.as     30 Jul 2007 18:38:15 -0000      
1.13
@@ -19,7 +19,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: TextField.as,v 1.12 2007/07/26 03:41:19 strk Exp $";
+rcsid="$Id: TextField.as,v 1.13 2007/07/30 18:38:15 strk Exp $";
 
 #include "check.as"
 
@@ -178,7 +178,7 @@
 
 check_equals(typeof(tf.embedFonts), 'boolean');
 check(!tf.hasOwnProperty('embedFonts'));
-xcheck_equals(tf.embedFonts, false);
+check_equals(tf.embedFonts, false);
 tf.embedFonts = true;
 check_equals(tf.embedFonts, true);
 tf.embedFonts = new Number(0); // will be converted to bool (true)




reply via email to

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