[gtk/wip/baedert/transforms6: 69/70] gl renderer: Remove an incorrect comment



commit 5e0d96fd373b9aabea941a0f98eef021d18b8882
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 c32b571654..05dd6a4bfd 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -469,11 +469,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))
@@ -486,8 +486,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]