[gtk/wip/baedert/gl-rework: 9/41] gl renderer: Trivial declaration reorder
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 9/41] gl renderer: Trivial declaration reorder
- Date: Fri, 20 Dec 2019 09:53:24 +0000 (UTC)
commit d2abbf80d55a8dd50ad3743cdda3b64c6007a426
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 16 07:13:37 2019 +0100
gl renderer: Trivial declaration reorder
gsk/gl/gskglrenderer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index c6c7131460..8366913e13 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -628,10 +628,10 @@ 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 graphene_point_t *offset = gsk_text_node_get_offset (node);
+ const guint num_glyphs = gsk_text_node_get_num_glyphs (node);
int i;
int x_position = 0;
- const graphene_point_t *offset = gsk_text_node_get_offset (node);
float x = offset->x + builder->dx;
float y = offset->y + builder->dy;
GlyphCacheKey lookup;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]