forked from AuroraMiddleware/gtk
Fix text colors
This was lost in some reshuffling of the gskpango branch.
This commit is contained in:
parent
f199f7b87b
commit
1440bb25de
@ -115,13 +115,16 @@ gsk_pango_renderer_show_text_glyphs (PangoRenderer *renderer,
|
||||
double base_y = (double)y / PANGO_SCALE;
|
||||
int x_offset, y_offset;
|
||||
GskRenderNode *node;
|
||||
GdkRGBA color;
|
||||
char name[64];
|
||||
|
||||
gtk_snapshot_get_offset (crenderer->snapshot, &x_offset, &y_offset);
|
||||
|
||||
gtk_snapshot_offset (crenderer->snapshot, base_x, base_y);
|
||||
|
||||
node = gsk_text_node_new (font, glyphs, &crenderer->fg_color, x_offset, y_offset, base_x, base_y);
|
||||
get_color (crenderer, PANGO_RENDER_PART_FOREGROUND, &color);
|
||||
|
||||
node = gsk_text_node_new (font, glyphs, &color, x_offset, y_offset, base_x, base_y);
|
||||
snprintf (name, sizeof (name), "Glyphs<%d>", glyphs->num_glyphs);
|
||||
gsk_render_node_set_name (node, name);
|
||||
gtk_snapshot_append_node (crenderer->snapshot, node);
|
||||
|
Loading…
Reference in New Issue
Block a user