X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0e0d66151c930ea402f96925d8d4dc9bb514c09..764a3a49068a94d1edb96f299b10c155d101c1b0:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index f389a8b5a7..52b5a38e83 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -3,6 +3,7 @@ #ifdef __GNUG__ #pragma interface "dcbase.h" + #pragma implementation "dcbase.h" #endif // ---------------------------------------------------------------------------- @@ -56,7 +57,7 @@ public: m_deviceOriginX = m_deviceOriginY = 0; m_logicalScaleX = m_logicalScaleY = - m_userScaleX = m_userScaleY = + m_userScaleX = m_userScaleY = m_scaleX = m_scaleY = 1.0; m_logicalFunction = -1; @@ -109,7 +110,7 @@ public: { DoDrawArc(pt1.x, pt1.y, pt2.x, pt2.y, centre.x, centre.y); } void DrawEllipticArc(long x, long y, long w, long h, double sa, double ea) - { DoDrawEllipticArc(x, y, x, y, sa, ea); } + { DoDrawEllipticArc(x, y, w, h, sa, ea); } void DrawEllipticArc(const wxPoint& pt, const wxSize& sz, double sa, double ea) { DoDrawEllipticArc(pt.x, pt.y, sz.x, sz.y, sa, ea); } @@ -180,6 +181,8 @@ public: void DrawRoundedRectangle(const wxRect& r, double radius) { DoDrawRoundedRectangle(r.x, r.y, r.width, r.height, radius); } + void DrawCircle(long x, long y, long radius) + { DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); } void DrawEllipse(long x, long y, long width, long height) { DoDrawEllipse(x, y, width, height); } void DrawEllipse(const wxPoint& pt, const wxSize& sz) @@ -395,8 +398,6 @@ public: if ( x ) *x = m_userScaleX; if ( y ) *y = m_userScaleY; } - void SetSystemScale(double x, double y) - { SetUserScale(x, y); } virtual void SetUserScale(double x, double y) = 0; virtual void GetLogicalScale(double *x, double *y) @@ -542,7 +543,9 @@ protected: if ( y ) *y = m_deviceOriginY; } +#if wxUSE_SPLINES virtual void DoDrawSpline(wxList *points) = 0; +#endif protected: // flags