[gtk/wip/baedert/transforms6: 53/61] 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: 53/61] gl renderer: Remove an incorrect comment
- Date: Wed, 23 Jan 2019 16:55:07 +0000 (UTC)
commit 8678264bff06807cea222369c203286b1119ddd2
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 4046c399ab..66ead89d38 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]