rendernodeparser: Default color to black

Nobody wants to render transparent text.
This commit is contained in:
Benjamin Otte 2019-05-12 16:01:15 +02:00
parent 0886ade182
commit a04ea72ca1

View File

@ -942,7 +942,7 @@ parse_text_node (GtkCssParser *parser)
PangoFont *font = NULL; PangoFont *font = NULL;
double x = 0; double x = 0;
double y = 0; double y = 0;
GdkRGBA color = { 0, 0, 0, 0 }; GdkRGBA color = { 0, 0, 0, 1 };
PangoGlyphString *glyphs = NULL; PangoGlyphString *glyphs = NULL;
const Declaration declarations[] = { const Declaration declarations[] = {
{ "font", parse_font, &font }, { "font", parse_font, &font },