[wxGTK2] gtk+-2.8.0 compatibility. Removed the usage of pango_x_get_context to not depend on a fully deprecated

pangox library, which is not pulled in with gtk+-2.8.0. The pango_x_get_context call was (arguably) making font
drawing on top of a wxDC slightly faster on (especially remote) X11 in case of non-antialiased fonts (I was unable to
find a non-antialiased font that actually returns true for GetNoAntiAliasing()).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2005-08-17 21:40:44 +00:00
parent befb44cf2e
commit f26623c817
6 changed files with 40 additions and 32 deletions

View File

@@ -1888,11 +1888,14 @@ void wxWindowDC::SetFont( const wxFont &font )
PangoContext *oldContext = m_context;
// We might want to use the X11 context for faster
// rendering on screen
// rendering on screen.
// MR: Lets not want to do this, as this introduces libpangox dependancy.
#if 0
if (m_font.GetNoAntiAliasing())
m_context = m_owner->GtkGetPangoX11Context();
else
m_context = m_owner->GtkGetPangoDefaultContext();
#endif
m_context = m_owner->GtkGetPangoDefaultContext();
// If we switch back/forth between different contexts
// we also have to create a new layout. I think so,