summaryrefslogtreecommitdiff
path: root/wx+/dc.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-04-02 09:18:58 -0400
committerB. Stack <bgstack15@gmail.com>2024-04-02 09:18:58 -0400
commitd287d1d35a5bf96487d7abdeee8c42a851d5d292 (patch)
treeaa74abf9f7bf245cbff1add74dd2697da45e0611 /wx+/dc.h
parentadd upstream 13.4 (diff)
downloadFreeFileSync-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/wx+/dc.h b/wx+/dc.h
index 619f6628..522e3bc8 100644
--- a/wx+/dc.h
+++ b/wx+/dc.h
@@ -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);
}
}
bgstack15