reverted DrawRotatedText change, it's broken

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-11-18 10:30:22 +00:00
parent 5117f9bfae
commit 6ff734acec
2 changed files with 0 additions and 34 deletions

View File

@ -1614,22 +1614,6 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
if (!m_window) return;
#if GTK_CHECK_VERSION(2,4,0)
// This code only rotates each individual glyph. Someone
// will have to look up the right way to do this... RR
PangoMatrix matrix = PANGO_MATRIX_INIT;
pango_matrix_rotate( &matrix, angle );
pango_context_set_matrix( m_context, &matrix );
DoDrawText( text, x, y );
pango_context_set_matrix( m_context, NULL );
#else
wxCoord w;
wxCoord h;
@ -1736,7 +1720,6 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
// update the bounding box
CalcBoundingBox(x + minX, y + minY);
CalcBoundingBox(x + maxX, y + maxY);
#endif // GTK24
}
void wxWindowDC::DoGetTextExtent(const wxString &string,

View File

@ -1614,22 +1614,6 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
if (!m_window) return;
#if GTK_CHECK_VERSION(2,4,0)
// This code only rotates each individual glyph. Someone
// will have to look up the right way to do this... RR
PangoMatrix matrix = PANGO_MATRIX_INIT;
pango_matrix_rotate( &matrix, angle );
pango_context_set_matrix( m_context, &matrix );
DoDrawText( text, x, y );
pango_context_set_matrix( m_context, NULL );
#else
wxCoord w;
wxCoord h;
@ -1736,7 +1720,6 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
// update the bounding box
CalcBoundingBox(x + minX, y + minY);
CalcBoundingBox(x + maxX, y + maxY);
#endif // GTK24
}
void wxWindowDC::DoGetTextExtent(const wxString &string,