Correction to position of rotated text.

Apps no longer give warnings if only a
    dialog pops up (top level windows == 0)
    before main loop.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-12-07 17:54:04 +00:00
parent d06800f14a
commit 7ec2881ac5
6 changed files with 315 additions and 455 deletions

View File

@@ -830,8 +830,8 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
wxCHECK_RET( font, wxT("invalid font") );
x = XLOG2DEV(x);
y = YLOG2DEV(y);
// x = XLOG2DEV(x);
// y = YLOG2DEV(y);
int cx = gdk_string_width( font, text.mbc_str() );
int cy = font->ascent + font->descent;