Check for Pango XFT presence (for wxX11).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2004-12-08 22:13:37 +00:00
parent 78b3b018ce
commit 4ae1af0588
6 changed files with 17 additions and 3 deletions

View File

@@ -690,7 +690,9 @@ bool wxApp::OnInitGui()
#include <pango/pango.h>
#include <pango/pangox.h>
#include <pango/pangoxft.h>
#ifdef HAVE_PANGO_XFT
#include <pango/pangoxft.h>
#endif
PangoContext* wxApp::GetPangoContext()
{
@@ -700,7 +702,7 @@ PangoContext* wxApp::GetPangoContext()
Display *xdisplay = (Display*) wxApp::GetDisplay();
#if 1
#ifdef HAVE_PANGO_XFT
int xscreen = DefaultScreen(xdisplay);
static int use_xft = -1;
if (use_xft == -1)