gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server edit_text_character.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server edit_text_character.cpp
Date: Fri, 20 Jul 2007 00:06:32 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/07/20 00:06:32

Modified files:
        server         : edit_text_character.cpp 

Log message:
        prepared for applying color transform to border and background (but 
isn't working so the block is disabled (need help from Udo most likely

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.79&r2=1.80

Patches:
Index: edit_text_character.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- edit_text_character.cpp     19 Jul 2007 15:01:15 -0000      1.79
+++ edit_text_character.cpp     20 Jul 2007 00:06:32 -0000      1.80
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: edit_text_character.cpp,v 1.79 2007/07/19 15:01:15 strk Exp $ */
+/* $Id: edit_text_character.cpp,v 1.80 2007/07/20 00:06:32 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -464,6 +464,16 @@
                rgba borderColor = drawBorder ? getBorderColor() : 
rgba(0,0,0,0);
                rgba backgroundColor = drawBackground ? getBackgroundColor() : 
rgba(255,255,255,0);
 
+               if ( 0 ) // should be if ! isDynamic to be PP-compatible (or is 
it about device font? to be tested)
+                        // Currently disabled due to what looks like a bug in 
color transform
+               {
+                       cxform  cx = get_world_cxform();
+                       log_debug("world cxform for textfield %s: %s", 
getTargetPath().c_str(), cx.toString().c_str());
+                       borderColor = cx.transform(borderColor);
+                       backgroundColor = cx.transform(backgroundColor);
+               }
+
+
                render::draw_poly( &coords[0], 4, backgroundColor, borderColor 
);
                
        }




reply via email to

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