use wxCoord with GetTextExtent(), not long (the long overloads are deprecated and not available at all with 2.8 compatibility turned off)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -79,8 +79,7 @@ void wxStatusBarMac::DrawFieldText(wxDC& dc, int i)
|
||||
|
||||
wxString text(GetStatusText( i ));
|
||||
|
||||
long x, y;
|
||||
|
||||
wxCoord x, y;
|
||||
dc.GetTextExtent(text, &x, &y);
|
||||
|
||||
int leftMargin = 2;
|
||||
|
@@ -2275,7 +2275,7 @@ void wxWindowMac::GetTextExtent(const wxString& string, int *x, int *y,
|
||||
fontToUse = &m_font;
|
||||
|
||||
wxClientDC dc( (wxWindowMac*) this ) ;
|
||||
long lx,ly,ld,le ;
|
||||
wxCoord lx,ly,ld,le ;
|
||||
dc.GetTextExtent( string , &lx , &ly , &ld, &le, (wxFont *)fontToUse ) ;
|
||||
if ( externalLeading )
|
||||
*externalLeading = le ;
|
||||
|
Reference in New Issue
Block a user