Cosmetic changes

Use Pango macros for handling PANGO_SCALE.
This commit is contained in:
Matthias Clasen 2017-09-11 11:22:10 -04:00
parent 86f018c6a7
commit 31ca709e23
2 changed files with 2 additions and 2 deletions

View File

@ -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++;

View File

@ -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;