#include <math.h>
+// bool wxDCBase::sm_cacheing = FALSE;
+
// ============================================================================
// implementation
// ============================================================================
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++ )
}
else // not end of line
{
- if ( pc - text == indexAccel )
+ if ( pc - text.c_str() == indexAccel )
{
// remeber to draw underscore here
GetTextExtent(curLine, &startUnderscore, NULL);