diff options
author | B. Stack <bgstack15@gmail.com> | 2024-04-02 09:18:58 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-04-02 09:18:58 -0400 |
commit | d287d1d35a5bf96487d7abdeee8c42a851d5d292 (patch) | |
tree | aa74abf9f7bf245cbff1add74dd2697da45e0611 /wx+/dc.h | |
parent | add upstream 13.4 (diff) | |
download | FreeFileSync-d287d1d35a5bf96487d7abdeee8c42a851d5d292.tar.gz FreeFileSync-d287d1d35a5bf96487d7abdeee8c42a851d5d292.tar.bz2 FreeFileSync-d287d1d35a5bf96487d7abdeee8c42a851d5d292.zip |
add upstream 13.513.5
Diffstat (limited to 'wx+/dc.h')
-rw-r--r-- | wx+/dc.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -195,8 +195,12 @@ public: } else { - dc_.SetClippingRegion(r); - clippingAreas_.emplace(&dc_, r); + //caveat: actual clipping region is smaller when rect is not fully inside the DC + //=> ensure consistency for validateClippingBuffer() + const wxRect tmp = getIntersection(r, wxRect(dc.GetSize())); + + dc_.SetClippingRegion(tmp); + clippingAreas_.emplace(&dc_, tmp); } } |