X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..cdc059191b6e36808967b8b1efecc8f5a6cd769e:/src/x11/pango_x.cpp?ds=sidebyside

diff --git a/src/x11/pango_x.cpp b/src/x11/pango_x.cpp
index 49393ad53e..405514c43a 100644
--- a/src/x11/pango_x.cpp
+++ b/src/x11/pango_x.cpp
@@ -64,6 +64,7 @@ x11_draw_glyphs( Drawable            drawable,
 		         PangoGlyphString   *glyphs,
                  wxColour           &colour )
 {
+#ifdef HAVE_PANGO_XFT
     if (PANGO_XFT_IS_FONT (font))
     {
         Display* xdisplay = wxGlobalDisplay();
@@ -84,6 +85,7 @@ x11_draw_glyphs( Drawable            drawable,
         XftDrawDestroy( draw );
     }
     else
+#endif
     {
         pango_x_render( wxGlobalDisplay(), drawable, gc, font, glyphs, x, y );
     }