summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmatekbd/matekbd-status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmatekbd/matekbd-status.c b/libmatekbd/matekbd-status.c
index 49ad0db..0183529 100644
--- a/libmatekbd/matekbd-status.c
+++ b/libmatekbd/matekbd-status.c
@@ -159,6 +159,7 @@ matekbd_status_render_cairo (cairo_t * cr, int group)
PangoLayout *pl;
int lwidth, lheight;
gchar *layout_name, *lbl_title;
+ double screen_res;
cairo_font_options_t *fo;
static GHashTable *ln2cnt_map = NULL;
@@ -186,6 +187,10 @@ matekbd_status_render_cairo (cairo_t * cr, int group)
pcc = pango_cairo_create_context (cr);
+ screen_res = gdk_screen_get_resolution (gdk_screen_get_default ());
+ if (screen_res > 0)
+ pango_cairo_context_set_resolution (pcc, screen_res);
+
fo = cairo_font_options_copy (gdk_screen_get_font_options
(gdk_screen_get_default ()));
/* SUBPIXEL antialiasing gives bad results on in-memory images */