X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06052f3f874cc39eb5365a3b4bbf3e929534cbe8..89fad939ec0d423961d8e93b2a0927f5b77bf256:/src/common/dcbase.cpp diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index baeb1c5ee8..994dfcee37 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -25,10 +25,15 @@ #endif #include "wx/dc.h" -#include "wx/math.h" + +#ifndef WX_PRECOMP + #include "wx/math.h" +#endif // bool wxDCBase::sm_cacheing = false; +IMPLEMENT_ABSTRACT_CLASS(wxDCBase, wxObject) + // ============================================================================ // implementation // ============================================================================ @@ -412,7 +417,7 @@ bool wxDCBase::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) { int totalWidth = 0; - const size_t len = text.Length(); + const size_t len = text.length(); widths.Empty(); widths.Add(0, len); @@ -771,7 +776,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect, SetPen(oldPen); } -void wxDCBase::GradientFillConcentric(const wxRect& rect, +void wxDCBase::DoGradientFillConcentric(const wxRect& rect, const wxColour& initialColour, const wxColour& destColour, const wxPoint& circleCenter)