Add wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.
Replace the dynamic_cast<> used in wxMSW wxRenderer implementation code with a virtual function call. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -512,6 +512,19 @@ public:
|
||||
// this needs to overidden if the axis is inverted
|
||||
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp);
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// Native Windows functions using the underlying HDC don't honour GDI+
|
||||
// transformations which may be applied to it. Using this function we can
|
||||
// transform the coordinates manually before passing them to such functions
|
||||
// (as in e.g. wxRendererMSW code). It doesn't do anything if this is not a
|
||||
// wxGCDC.
|
||||
virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const
|
||||
{
|
||||
return r;
|
||||
}
|
||||
#endif // __WXMSW__
|
||||
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// the actual drawing API
|
||||
|
||||
|
Reference in New Issue
Block a user