[gtk+] Cosmetic changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Cosmetic changes
- Date: Mon, 11 Sep 2017 15:23:33 +0000 (UTC)
commit 31ca709e235fdbc8f8773cac346ef58d71af4d30
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 11 11:22:10 2017 -0400
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 0cfe5e5..b3da054 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 5606dfa..81eee30 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]