[gtk/wip/otte/for-master: 2/2] rendernodeparser: Default color to black



commit 9b766adfd0b220a08e2c40ed93e08e815292da96
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 12 16:01:15 2019 +0200

    rendernodeparser: Default color to black
    
    Nobody wants to render transparent text.

 gsk/gskrendernodeparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index 06b2b183c7..234ef487a4 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -942,7 +942,7 @@ parse_text_node (GtkCssParser *parser)
   PangoFont *font = NULL;
   double x = 0;
   double y = 0;
-  GdkRGBA color = { 0, 0, 0, 0 };
+  GdkRGBA color = { 0, 0, 0, 1 };
   PangoGlyphString *glyphs = NULL;
   const Declaration declarations[] = {
     { "font", parse_font, &font },


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