forked from AuroraMiddleware/gtk
Cosmetic changes
Use Pango macros for handling PANGO_SCALE.
This commit is contained in:
parent
86f018c6a7
commit
31ca709e23
@ -129,7 +129,7 @@ gsk_vulkan_color_text_pipeline_collect_vertex_data (GskVulkanColorTextPipeline *
|
|||||||
&ascent, &height);
|
&ascent, &height);
|
||||||
instance->rect[0] = x + cx;
|
instance->rect[0] = x + cx;
|
||||||
instance->rect[1] = y + cy - ascent;
|
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->rect[3] = height;
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
@ -137,7 +137,7 @@ gsk_vulkan_text_pipeline_collect_vertex_data (GskVulkanTextPipeline *pipeline,
|
|||||||
&ascent, &height);
|
&ascent, &height);
|
||||||
instance->rect[0] = x + cx;
|
instance->rect[0] = x + cx;
|
||||||
instance->rect[1] = y + cy - ascent;
|
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->rect[3] = height;
|
||||||
instance->color[0] = color->red;
|
instance->color[0] = color->red;
|
||||||
instance->color[1] = color->green;
|
instance->color[1] = color->green;
|
||||||
|
Loading…
Reference in New Issue
Block a user