X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/src/x11/pango_x.cpp

diff --git a/src/x11/pango_x.cpp b/src/x11/pango_x.cpp
index 50370c89d3..405514c43a 100644
--- a/src/x11/pango_x.cpp
+++ b/src/x11/pango_x.cpp
@@ -2,7 +2,7 @@
  * This file gets included from dcclient.cpp and implements 
  * the X11 interface to Pango. 
  * Copyright (C) Owen Taylor and Robert Roebling.
- * Licence: The wxWidgets licence
+ * Licence: The wxWindows licence
  */
 
 /* Declaration */
@@ -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 );
     }