[gtk+] Fix text colors
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix text colors
- Date: Fri, 1 Sep 2017 18:13:00 +0000 (UTC)
commit 1440bb25dee3552d23714f9411e806e62fbbd2c7
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 1 14:12:20 2017 -0400
Fix text colors
This was lost in some reshuffling of the gskpango branch.
gtk/gskpango.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gskpango.c b/gtk/gskpango.c
index e1d6391..a73f25c 100644
--- a/gtk/gskpango.c
+++ b/gtk/gskpango.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]