Don't use long deprecated and now removed pangox library in wxX11 any more.
Use pangoxft only now. Also remove the apparently unused src/x11/pangox11.cpp file, only src/x11/pango_x.cpp seems to be used (and this one only by being included in src/x11/dcclient.cpp). Closes #15482. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -659,10 +659,7 @@ bool wxApp::OnInitGui()
|
||||
#if wxUSE_UNICODE
|
||||
|
||||
#include <pango/pango.h>
|
||||
#include <pango/pangox.h>
|
||||
#ifdef HAVE_PANGO_XFT
|
||||
#include <pango/pangoxft.h>
|
||||
#endif
|
||||
#include <pango/pangoxft.h>
|
||||
|
||||
PangoContext* wxApp::GetPangoContext()
|
||||
{
|
||||
@@ -670,21 +667,9 @@ PangoContext* wxApp::GetPangoContext()
|
||||
if ( !s_pangoContext )
|
||||
{
|
||||
Display *dpy = wxGlobalDisplay();
|
||||
|
||||
#ifdef HAVE_PANGO_XFT
|
||||
int xscreen = DefaultScreen(dpy);
|
||||
static int use_xft = -1;
|
||||
if (use_xft == -1)
|
||||
{
|
||||
wxString val = wxGetenv( L"GDK_USE_XFT" );
|
||||
use_xft = val == L"1";
|
||||
}
|
||||
|
||||
if (use_xft)
|
||||
s_pangoContext = pango_xft_get_context(dpy, xscreen);
|
||||
else
|
||||
#endif // HAVE_PANGO_XFT
|
||||
s_pangoContext = pango_x_get_context(dpy);
|
||||
s_pangoContext = pango_xft_get_context(dpy, xscreen);
|
||||
|
||||
if (!PANGO_IS_CONTEXT(s_pangoContext))
|
||||
{
|
||||
|
Reference in New Issue
Block a user