/////////////////////////////////////////////////////////////////////////////
-// Name: common/dcbase.cpp
+// Name: src/common/dcbase.cpp
// Purpose: generic methods of the wxDC Class
// Author: Vadim Zeitlin
// Modified by:
#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
// ============================================================================
{
int totalWidth = 0;
- const size_t len = text.Length();
+ const size_t len = text.length();
widths.Empty();
widths.Add(0, len);
nGradient = 0;
//get dest colors
- nR = nR1 + ((nR2 - nR1) * nGradient / 100);
- nG = nG1 + ((nG2 - nG1) * nGradient / 100);
- nB = nB1 + ((nB2 - nB1) * nGradient / 100);
+ nR = (wxUint8)(nR1 + ((nR2 - nR1) * nGradient / 100));
+ nG = (wxUint8)(nG1 + ((nG2 - nG1) * nGradient / 100));
+ nB = (wxUint8)(nB1 + ((nB2 - nB1) * nGradient / 100));
//set the pixel
m_pen.SetColour(wxColour(nR,nG,nB));
} // CalculateEllipticPoints
#endif
-