Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Thu, 10 Oct 2019 03:17:15 +0000 (23:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Oct 2019 20:16:09 +0000 (16:16 -0400)
gsk/gl/gskglrenderer.c

index 2ed9d1e9a60c09d5e9b13fc37f83d2559fea1ef5..5354aca55f4c31a9611eba66bd6e020b744deb49 100644 (file)
@@ -574,7 +574,7 @@ render_text_node (GskGLRenderer   *self,
     {
       const PangoGlyphInfo *gi = &glyphs[i];
       const GskGLCachedGlyph *glyph;
-      float glyph_x, glyph_y, glyph_w, glyph_h;
+      float glyph_x, glyph_y, glyph_x2, glyph_y2;
       float tx, ty, tx2, ty2;
       double cx;
       double cy;
@@ -604,17 +604,17 @@ render_text_node (GskGLRenderer   *self,
 
       glyph_x = floor (x + cx + 0.125) + glyph->draw_x;
       glyph_y = floor (y + cy + 0.125) + glyph->draw_y;
-      glyph_w = glyph->draw_width;
-      glyph_h = glyph->draw_height;
+      glyph_x2 = glyph_x + glyph->draw_width;
+      glyph_y2 = glyph_y + glyph->draw_height;
 
       ops_draw (builder, (GskQuadVertex[GL_N_VERTICES]) {
-        { { glyph_x,           glyph_y           }, { tx,  ty  }, },
-        { { glyph_x,           glyph_y + glyph_h }, { tx,  ty2 }, },
-        { { glyph_x + glyph_w, glyph_y           }, { tx2, ty  }, },
+        { { glyph_x,  glyph_y  }, { tx,  ty  }, },
+        { { glyph_x,  glyph_y2 }, { tx,  ty2 }, },
+        { { glyph_x2, glyph_y  }, { tx2, ty  }, },
 
-        { { glyph_x + glyph_w, glyph_y + glyph_h }, { tx2, ty2 }, },
-        { { glyph_x,           glyph_y + glyph_h }, { tx,  ty2 }, },
-        { { glyph_x + glyph_w, glyph_y           }, { tx2, ty  }, },
+        { { glyph_x2, glyph_y2 }, { tx2, ty2 }, },
+        { { glyph_x,  glyph_y2 }, { tx,  ty2 }, },
+        { { glyph_x2, glyph_y  }, { tx2, ty  }, },
       });
 
 next: