summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-05-27 19:06:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-05-27 19:06:17 +0000
commit6301eeece77b8c6b6b07be8415142b5d2e1085ca (patch)
tree0f8b008f7dbbdbce0ca3de7c19e3a8d112185458 /pango/pangoxft-font.c
parenta0bec4be217c89ed24f91f6a8be1d0cd4bdd4cd5 (diff)
downloadpango-6301eeece77b8c6b6b07be8415142b5d2e1085ca.tar.gz
Get the fontnmap for the right screen (#113452, Morten Welinder)
Tue May 27 15:01:24 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (pango_xft_font_get_metrics): Get the fontnmap for the right screen (#113452, Morten Welinder)
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index a404c1ab..c131cf51 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -473,6 +473,7 @@ pango_xft_font_get_metrics (PangoFont *font,
PangoContext *context;
XftFont *xft_font;
Display *display;
+ int screen;
info = g_new0 (PangoXftMetricsInfo, 1);
xfont->metrics_by_lang = g_slist_prepend (xfont->metrics_by_lang,
@@ -483,8 +484,8 @@ pango_xft_font_get_metrics (PangoFont *font,
{
xft_font = xft_font_get_font (font);
- _pango_xft_font_map_get_info (xfont->fontmap, &display, NULL);
- context = pango_xft_get_context (display, 0);
+ _pango_xft_font_map_get_info (xfont->fontmap, &display, &screen);
+ context = pango_xft_get_context (display, screen);
info->sample_str = sample_str;
info->metrics = pango_font_metrics_new ();