render characters on OSX one by one as fractional widths leads to errors otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
362439b629
commit
21e02d56c2
@ -424,10 +424,17 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
wxChar ch = CharAt(x, y);
|
||||
if ( !ch )
|
||||
ch = wxT(' ');
|
||||
#ifdef __WXOSX__
|
||||
dc.DrawText(ch, m_xMargin + x * m_widthChar,
|
||||
m_yMargin + y * m_heightChar );
|
||||
#else
|
||||
line += ch;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef __WXOSX__
|
||||
dc.DrawText( line, m_xMargin, m_yMargin + y * m_heightChar );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user