summaryrefslogtreecommitdiff
path: root/gsk/vulkan/gskvulkancolortextpipeline.c
diff options
context:
space:
mode:
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;