summaryrefslogtreecommitdiff
path: root/wx+
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+
parentadd upstream 13.4 (diff)
downloadFreeFileSync-13.5.tar.gz
FreeFileSync-13.5.tar.bz2
FreeFileSync-13.5.zip
add upstream 13.513.5
Diffstat (limited to 'wx+')
-rw-r--r--wx+/dc.h8
-rw-r--r--wx+/tooltip.cpp5
2 files changed, 8 insertions, 5 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);
}
}
diff --git a/wx+/tooltip.cpp b/wx+/tooltip.cpp
index 01b5ead4..14df955c 100644
--- a/wx+/tooltip.cpp
+++ b/wx+/tooltip.cpp
@@ -75,10 +75,9 @@ void Tooltip::show(const wxString& text, wxPoint mousePos, const wxImage* img)
if (txtChanged)
{
lastUsedText_ = text;
- {
tipWindow_->staticTextMain_->SetLabelText(text);
- tipWindow_->staticTextMain_->Wrap(dipToWxsize(600));
- }
+
+ tipWindow_->staticTextMain_->Wrap(dipToWxsize(600));
}
if (imgChanged || txtChanged)
bgstack15