X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b494e2b0082a5464459fbc25abe4c9f46033dac1..b04093c949b167780465008be80b273b25c28e3a:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index 37babb269c..bb485c7aca 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -534,12 +534,10 @@ public: int GetLogicalFunction() const { return m_logicalFunction; } virtual void SetLogicalFunction(int function) = 0; - // Sometimes we need to override optimization, e.g. if other software is - // drawing onto our surface and we can't be sure of who's done what. - // - // FIXME: is this (still) used? +#if WXWIN_COMPATIBILITY_2_4 virtual void SetOptimization(bool WXUNUSED(opt)) { } virtual bool GetOptimization() { return false; } +#endif // bounding box // ------------ @@ -686,10 +684,13 @@ protected: virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height) = 0; - // FIXME are these functions really different? +#if WXWIN_COMPATIBILITY_2_4 + // this was only for confusing people, use DoGetClippingBox only virtual void DoGetClippingRegion(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) { DoGetClippingBox(x, y, w, h); } +#endif + virtual void DoGetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) const {