gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/edit_text_character.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp
Date: Sun, 22 Jul 2007 12:22:00 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/07/22 12:22:00

Modified files:
        .              : ChangeLog 
        server         : edit_text_character.cpp 

Log message:
                * server/edit_text_character.cpp (setTextColor):
                  update text glyph records color.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3781&r2=1.3782
http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.85&r2=1.86

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3781
retrieving revision 1.3782
diff -u -b -r1.3781 -r1.3782
--- ChangeLog   22 Jul 2007 03:37:56 -0000      1.3781
+++ ChangeLog   22 Jul 2007 12:21:59 -0000      1.3782
@@ -1,3 +1,8 @@
+2007-07-22 Sandro Santilli <address@hidden>
+
+       * server/edit_text_character.cpp (setTextColor): 
+         update text glyph records color.
+
 2007-07-21 Sandro Santilli <address@hidden>
 
        * testsuite/actionscript.all/TextField.as: update expected

Index: server/edit_text_character.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- server/edit_text_character.cpp      22 Jul 2007 03:29:25 -0000      1.85
+++ server/edit_text_character.cpp      22 Jul 2007 12:22:00 -0000      1.86
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: edit_text_character.cpp,v 1.85 2007/07/22 03:29:25 strk Exp $ */
+/* $Id: edit_text_character.cpp,v 1.86 2007/07/22 12:22:00 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1414,7 +1414,17 @@
        if ( _textColor != col )
        {
                set_invalidated();
+
                _textColor = col;
+
+               // Change color of all current glyph records
+               for (TextGlyphRecords::iterator i=m_text_glyph_records.begin(),
+                       e=m_text_glyph_records.end(); i!=e; ++i)
+               {
+                       text_glyph_record& rec=*i;
+                       rec.m_style.m_color = _textColor;
+               }
+
        }
 }
 




reply via email to

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