From 6ff734acec7f63bdb03fbe9033958f1ead0a5bee Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 18 Nov 2004 10:30:22 +0000 Subject: [PATCH] reverted DrawRotatedText change, it's broken git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 17 ----------------- src/gtk1/dcclient.cpp | 17 ----------------- 2 files changed, 34 deletions(-) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index e295215def..537499b4dd 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -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, diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index e295215def..537499b4dd 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -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, -- 2.45.2