[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:
@@ -4279,12 +4279,10 @@ PangoContext *wxWindowGTK::GtkGetPangoDefaultContext()
|
||||
return gtk_widget_get_pango_context( m_widget );
|
||||
}
|
||||
|
||||
// MR: Returns the same as GtkGetPangoDefaultContext until the symbol can be removed in 2.7.x
|
||||
PangoContext *wxWindowGTK::GtkGetPangoX11Context()
|
||||
{
|
||||
if (!m_x11Context)
|
||||
m_x11Context = pango_x_get_context( gdk_display );
|
||||
|
||||
return m_x11Context;
|
||||
return gtk_widget_get_pango_context( m_widget );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user