From 8dcc14725d65a6ebfddb073a57d0c4a8175ccc96 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 23 Feb 2003 19:57:45 +0000 Subject: [PATCH] removed the extra offset in moveto in DrawRotatedText() (why was it there?) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/dcpsg.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 2c78950e71..fc713f7ca2 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1479,11 +1479,8 @@ void wxPostScriptDC::DoDrawRotatedText( const wxString& text, wxCoord x, wxCoord int size = m_font.GetPointSize(); - long by = y + (long)floor( double(size) * 2.0 / 3.0 ); // approximate baseline - - // FIXME only correct for 90 degrees fprintf(m_pstream, "%d %d moveto\n", - LogicalToDeviceX((wxCoord)(x + size)), LogicalToDeviceY((wxCoord)by) ); + LogicalToDeviceX(x), LogicalToDeviceY(y)); char buffer[100]; sprintf(buffer, "%.8f rotate\n", angle); -- 2.47.2