aboutsummaryrefslogtreecommitdiff
path: root/sway/border.c
diff options
context:
space:
mode:
authorDrew DeVault <ddevault@linode.com>2016-09-05 11:52:52 -0400
committerDrew DeVault <ddevault@linode.com>2016-09-05 11:52:52 -0400
commitaf441541197a102d67048b8af920d63d1af37a2f (patch)
treeb9331b05cad8aa11539540c5c8942dac90e43da5 /sway/border.c
parentb2226ac6551f18275fadbcb3bc16a06d2a3dd97f (diff)
Fix constant scale factor in font code
Diffstat (limited to 'sway/border.c')
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index 65f69411..09bf05e9 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -92,7 +92,7 @@ int get_font_text_height(const char *font) {
cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200);
cairo_t *cr = cairo_create(surface);
int width, height;
- get_text_size(cr, font, &width, &height, false, "Gg");
+ get_text_size(cr, font, &width, &height, 1, false, "Gg");
cairo_surface_destroy(surface);
cairo_destroy(cr);
return height;
@@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b,
get_text_size(cr, config->font, &width, &height, false, "%s", view->name);
cairo_move_to(cr, x + 2, y + 2);
cairo_set_source_u32(cr, colors->text);
- pango_printf(cr, config->font, false, "%s", view->name);
+ pango_printf(cr, config->font, 1, false, "%s", view->name);
}
// titlebars has a border all around for tabbed layouts