From: Vadim Zeitlin Date: Tue, 22 May 2007 02:00:35 +0000 (+0000) Subject: use wxCoord with GetTextExtent(), not long (the long overloads are deprecated and... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/659863d8a73d02626f4060bb1099fe7bfd80d22a 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 --- diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 9bca84cca9..b302d82ab6 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -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; diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 5e591fe757..5262045852 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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 ;