summaryrefslogtreecommitdiff
path: root/gsk/vulkan/gskvulkancolortextpipeline.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-05-19 04:08:29 +0200
committerBenjamin Otte <otte@redhat.com>2019-05-21 06:43:59 +0200
commita1d08b4b52615bd1408976b5503c1bbe7e2c5bd9 (patch)
tree035ec6b4b84c82703a26ba37aaa380e2f1d696e5 /gsk/vulkan/gskvulkancolortextpipeline.c
parent0fd0be4f9a51af7c0ab0a0a007287e538d755c35 (diff)
downloadgtk+-a1d08b4b52615bd1408976b5503c1bbe7e2c5bd9.tar.gz
rendernode: Take a graphene_point_t for the offset
... instead of 2 floats.
Diffstat (limited to 'gsk/vulkan/gskvulkancolortextpipeline.c')
-rw-r--r--gsk/vulkan/gskvulkancolortextpipeline.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gsk/vulkan/gskvulkancolortextpipeline.c b/gsk/vulkan/gskvulkancolortextpipeline.c
index 9770b27938..a7b0ad39a7 100644
--- a/gsk/vulkan/gskvulkancolortextpipeline.c
+++ b/gsk/vulkan/gskvulkancolortextpipeline.c
@@ -100,8 +100,7 @@ gsk_vulkan_color_text_pipeline_collect_vertex_data (GskVulkanColorTextPipeline *
PangoFont *font,
guint total_glyphs,
const PangoGlyphInfo *glyphs,
- float x,
- float y,
+ const graphene_point_t *offset,
guint start_glyph,
guint num_glyphs,
float scale)
@@ -132,8 +131,8 @@ gsk_vulkan_color_text_pipeline_collect_vertex_data (GskVulkanColorTextPipeline *
instance->tex_rect[2] = glyph->tw;
instance->tex_rect[3] = glyph->th;
- instance->rect[0] = x + cx + glyph->draw_x;
- instance->rect[1] = y + cy + glyph->draw_y;
+ instance->rect[0] = offset->x + cx + glyph->draw_x;
+ instance->rect[1] = offset->y + cy + glyph->draw_y;
instance->rect[2] = glyph->draw_width;
instance->rect[3] = glyph->draw_height;