diff options
author | 2016-09-05 11:52:52 -0400 | |
---|---|---|
committer | 2016-09-05 11:52:52 -0400 | |
commit | af441541197a102d67048b8af920d63d1af37a2f (patch) | |
tree | b9331b05cad8aa11539540c5c8942dac90e43da5 /sway/border.c | |
parent | Add client support for HiDPI (diff) | |
download | sway-af441541197a102d67048b8af920d63d1af37a2f.tar.gz sway-af441541197a102d67048b8af920d63d1af37a2f.tar.zst sway-af441541197a102d67048b8af920d63d1af37a2f.zip |
Fix constant scale factor in font code
Diffstat (limited to 'sway/border.c')
-rw-r--r-- | sway/border.c | 4 |
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) { | |||
92 | cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200); | 92 | cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200); |
93 | cairo_t *cr = cairo_create(surface); | 93 | cairo_t *cr = cairo_create(surface); |
94 | int width, height; | 94 | int width, height; |
95 | get_text_size(cr, font, &width, &height, false, "Gg"); | 95 | get_text_size(cr, font, &width, &height, 1, false, "Gg"); |
96 | cairo_surface_destroy(surface); | 96 | cairo_surface_destroy(surface); |
97 | cairo_destroy(cr); | 97 | cairo_destroy(cr); |
98 | return height; | 98 | return height; |
@@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b, | |||
180 | get_text_size(cr, config->font, &width, &height, false, "%s", view->name); | 180 | get_text_size(cr, config->font, &width, &height, false, "%s", view->name); |
181 | cairo_move_to(cr, x + 2, y + 2); | 181 | cairo_move_to(cr, x + 2, y + 2); |
182 | cairo_set_source_u32(cr, colors->text); | 182 | cairo_set_source_u32(cr, colors->text); |
183 | pango_printf(cr, config->font, false, "%s", view->name); | 183 | pango_printf(cr, config->font, 1, false, "%s", view->name); |
184 | } | 184 | } |
185 | 185 | ||
186 | // titlebars has a border all around for tabbed layouts | 186 | // titlebars has a border all around for tabbed layouts |