From 31ca709e235fdbc8f8773cac346ef58d71af4d30 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 11 Sep 2017 11:22:10 -0400 Subject: [PATCH] Cosmetic changes Use Pango macros for handling PANGO_SCALE. --- gsk/gskvulkancolortextpipeline.c | 2 +- gsk/gskvulkantextpipeline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gskvulkancolortextpipeline.c b/gsk/gskvulkancolortextpipeline.c index 0cfe5e560f..b3da054ffa 100644 --- a/gsk/gskvulkancolortextpipeline.c +++ b/gsk/gskvulkancolortextpipeline.c @@ -129,7 +129,7 @@ gsk_vulkan_color_text_pipeline_collect_vertex_data (GskVulkanColorTextPipeline * &ascent, &height); instance->rect[0] = x + cx; instance->rect[1] = y + cy - ascent; - instance->rect[2] = (float)gi->geometry.width / PANGO_SCALE; + instance->rect[2] = PANGO_PIXELS_CEIL (gi->geometry.width); instance->rect[3] = height; count++; diff --git a/gsk/gskvulkantextpipeline.c b/gsk/gskvulkantextpipeline.c index 5606dfa807..81eee308c9 100644 --- a/gsk/gskvulkantextpipeline.c +++ b/gsk/gskvulkantextpipeline.c @@ -137,7 +137,7 @@ gsk_vulkan_text_pipeline_collect_vertex_data (GskVulkanTextPipeline *pipeline, &ascent, &height); instance->rect[0] = x + cx; instance->rect[1] = y + cy - ascent; - instance->rect[2] = (float)gi->geometry.width / PANGO_SCALE; + instance->rect[2] = PANGO_PIXELS_CEIL (gi->geometry.width); instance->rect[3] = height; instance->color[0] = color->red; instance->color[1] = color->green;