File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ matekbd_status_render_cairo (cairo_t * cr, int group)
159159 PangoLayout * pl ;
160160 int lwidth , lheight ;
161161 gchar * layout_name , * lbl_title ;
162+ double screen_res ;
162163 cairo_font_options_t * fo ;
163164 static GHashTable * ln2cnt_map = NULL ;
164165
@@ -186,6 +187,10 @@ matekbd_status_render_cairo (cairo_t * cr, int group)
186187
187188 pcc = pango_cairo_create_context (cr );
188189
190+ screen_res = gdk_screen_get_resolution (gdk_screen_get_default ());
191+ if (screen_res > 0 )
192+ pango_cairo_context_set_resolution (pcc , screen_res );
193+
189194 fo = cairo_font_options_copy (gdk_screen_get_font_options
190195 (gdk_screen_get_default ()));
191196 /* SUBPIXEL antialiasing gives bad results on in-memory images */
You can’t perform that action at this time.
0 commit comments