diff options
author | B Stack <bgstack15@gmail.com> | 2019-06-14 22:33:49 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-06-14 22:33:49 -0400 |
commit | 583d22efb5901296d1e3dcbc091be5dee9d8a14f (patch) | |
tree | cc720d69d3ca68b64ed0aa79438177b6953469a1 /wx+/dc.h | |
parent | Merge branch '10.12' into 'master' (diff) | |
download | FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.gz FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.bz2 FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.zip |
10.13
Diffstat (limited to 'wx+/dc.h')
-rw-r--r-- | wx+/dc.h | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -17,20 +17,19 @@ namespace zen { /* -1. wxDCClipper does *not* stack: another fix for yet another poor wxWidgets implementation + 1. wxDCClipper does *not* stack: another fix for yet another poor wxWidgets implementation -class RecursiveDcClipper -{ - RecursiveDcClipper(wxDC& dc, const wxRect& r) : dc_(dc) -}; + class RecursiveDcClipper + { + RecursiveDcClipper(wxDC& dc, const wxRect& r) + }; ------------------------------------------------------------------------------------------------- + 2. wxAutoBufferedPaintDC skips one pixel on left side when RTL layout is active: a fix for a poor wxWidgets implementation -2. wxAutoBufferedPaintDC skips one pixel on left side when RTL layout is active: a fix for a poor wxWidgets implementation -class BufferedPaintDC -{ - BufferedPaintDC(wxWindow& wnd, std::unique_ptr<wxBitmap>& buffer); -}; + class BufferedPaintDC + { + BufferedPaintDC(wxWindow& wnd, std::unique_ptr<wxBitmap>& buffer) + }; */ @@ -77,7 +76,7 @@ public: oldRect_ = it->second; wxRect tmp = r; - tmp.Intersect(*oldRect_); //better safe than sorry + tmp.Intersect(*oldRect_); //better safe than sorry dc_.SetClippingRegion(tmp); // it->second = tmp; } @@ -113,6 +112,7 @@ private: #error we need this one! #endif +//CAVEAT: wxPaintDC on wxGTK/wxMAC does not implement SetLayoutDirection()!!! => GetLayoutDirection() == wxLayout_Default #if wxALWAYS_NATIVE_DOUBLE_BUFFER struct BufferedPaintDC : public wxPaintDC { BufferedPaintDC(wxWindow& wnd, std::optional<wxBitmap>& buffer) : wxPaintDC(&wnd) {} }; @@ -144,7 +144,7 @@ public: if (GetLayoutDirection() == wxLayout_RightToLeft) { paintDc_.SetLayoutDirection(wxLayout_LeftToRight); //workaround bug in wxDC::Blit() - SetLayoutDirection(wxLayout_LeftToRight); // + SetLayoutDirection(wxLayout_LeftToRight); // } const wxPoint origin = GetDeviceOrigin(); |