X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..a9249b2eb2a40d8c71f828669045c4ddaa8dc5ff:/src/common/dcbase.cpp?ds=inline diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index c18a9ddc87..83e9980940 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -32,6 +32,8 @@ #include +// bool wxDCBase::sm_cacheing = FALSE; + // ============================================================================ // implementation // ============================================================================ @@ -326,8 +328,8 @@ void wxDCBase::GetMultiLineTextExtent(const wxString& text, wxCoord *h, wxFont *font) { - int widthTextMax = 0, widthLine, - heightTextTotal = 0, heightLineDefault = 0, heightLine = 0; + wxCoord widthTextMax = 0, widthLine, + heightTextTotal = 0, heightLineDefault = 0, heightLine = 0; wxString curLine; for ( const wxChar *pc = text; ; pc++ ) @@ -506,7 +508,7 @@ void wxDCBase::DrawLabel(const wxString& text, } else // not end of line { - if ( pc - text == indexAccel ) + if ( pc - text.c_str() == indexAccel ) { // remeber to draw underscore here GetTextExtent(curLine, &startUnderscore, NULL);