[gtk/wip/baedert/transforms6: 152/155] gl renderer: Remove an incorrect comment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 152/155] gl renderer: Remove an incorrect comment
- Date: Sat, 19 Jan 2019 07:17:39 +0000 (UTC)
commit 38ce9dfefd2a4ca8b499024545e9c8591c80aeda
Author: Timm Bäder <mail baedert org>
Date: Wed Dec 12 09:25:12 2018 +0100
gl renderer: Remove an incorrect comment
Quite some other nodes use more than one quad these days.
gsk/gl/gskglrenderer.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 4eac8a0c62..126f71e1e9 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -475,11 +475,11 @@ render_text_node (GskGLRenderer *self,
const PangoFont *font = gsk_text_node_peek_font (node);
const PangoGlyphInfo *glyphs = gsk_text_node_peek_glyphs (node);
const float text_scale = ops_get_scale (builder);
- guint num_glyphs = gsk_text_node_get_num_glyphs (node);
+ const guint num_glyphs = gsk_text_node_get_num_glyphs (node);
+ const float x = gsk_text_node_get_x (node) + builder->dx;
+ const float y = gsk_text_node_get_y (node) + builder->dy;
int i;
int x_position = 0;
- float x = gsk_text_node_get_x (node) + builder->dx;
- float y = gsk_text_node_get_y (node) + builder->dy;
/* If the font has color glyphs, we don't need to recolor anything */
if (!force_color && font_has_color_glyphs (font))
@@ -492,8 +492,6 @@ render_text_node (GskGLRenderer *self,
ops_set_color (builder, color);
}
- /* We use one quad per character, unlike the other nodes which
- * use at most one quad altogether */
for (i = 0; i < num_glyphs; i++)
{
const PangoGlyphInfo *gi = &glyphs[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]