X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5b208a1796ecf1b9ab267d200705b4f3b4d10e3..2e14066008229145e2da7b9f05a478ce38631f83:/src/common/cairo.cpp?ds=sidebyside diff --git a/src/common/cairo.cpp b/src/common/cairo.cpp index a42a22900d..ad2ae52e1a 100644 --- a/src/common/cairo.cpp +++ b/src/common/cairo.cpp @@ -41,6 +41,7 @@ wxCairoLibrary::wxCairoLibrary() if ( !m_ok ) return; +#if wxUSE_PANGO m_libPangoCairo.Load("libpangocairo-1.0.so.0"); m_ok = m_libPangoCairo.IsLoaded(); if ( !m_ok ) @@ -48,6 +49,7 @@ wxCairoLibrary::wxCairoLibrary() m_libCairo.Unload(); return; } +#endif m_ok = InitializeMethods(); } @@ -129,8 +131,10 @@ bool wxCairoLibrary::InitializeMethods() wxDL_METHOD_LOAD(m_libCairo, cairo_surface_destroy); wxDL_METHOD_LOAD(m_libCairo, cairo_translate); +#if wxUSE_PANGO wxDL_METHOD_LOAD(m_libPangoCairo, pango_cairo_update_layout); wxDL_METHOD_LOAD(m_libPangoCairo, pango_cairo_show_layout); +#endif return true; }