Applied patch [ 673055 ] Text rendering in wxGTK 2.4.0 and GTK2 fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2003-01-24 12:36:04 +00:00
parent 82e5f91bff
commit 85b7bb3557
2 changed files with 16 additions and 0 deletions

View File

@ -394,6 +394,14 @@ void wxWindowDC::SetUpDC()
m_bgGC = wxGetPoolGC( m_window, wxBG_COLOUR );
}
#ifdef __WXGTK20__
if (m_isMemDC)
{
m_context = gdk_pango_context_get();
m_fontdesc = pango_context_get_font_description(m_context);
}
#endif
/* background colour */
m_backgroundBrush = *wxWHITE_BRUSH;
m_backgroundBrush.GetColour().CalcPixel( m_cmap );

View File

@ -394,6 +394,14 @@ void wxWindowDC::SetUpDC()
m_bgGC = wxGetPoolGC( m_window, wxBG_COLOUR );
}
#ifdef __WXGTK20__
if (m_isMemDC)
{
m_context = gdk_pango_context_get();
m_fontdesc = pango_context_get_font_description(m_context);
}
#endif
/* background colour */
m_backgroundBrush = *wxWHITE_BRUSH;
m_backgroundBrush.GetColour().CalcPixel( m_cmap );