X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..3b88355f59ffadc66f5f76816d4732a607702fc6:/src/x11/pango_x.cpp?ds=inline diff --git a/src/x11/pango_x.cpp b/src/x11/pango_x.cpp index e3e12e3dec..405514c43a 100644 --- a/src/x11/pango_x.cpp +++ b/src/x11/pango_x.cpp @@ -2,6 +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 wxWindows licence */ /* Declaration */ @@ -63,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(); @@ -83,6 +85,7 @@ x11_draw_glyphs( Drawable drawable, XftDrawDestroy( draw ); } else +#endif { pango_x_render( wxGlobalDisplay(), drawable, gc, font, glyphs, x, y ); }