summaryrefslogtreecommitdiff
path: root/wx+/tooltip.cpp
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
committerB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
commit2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch)
tree2be66dfaf965d246ea2df6248c7890208887e6bb /wx+/tooltip.cpp
parentadd upstream 13.1 (diff)
downloadFreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.gz
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.bz2
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.zip
add upstream 13.213.2
Diffstat (limited to 'wx+/tooltip.cpp')
-rw-r--r--wx+/tooltip.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/wx+/tooltip.cpp b/wx+/tooltip.cpp
index 79d4fa1a..01b5ead4 100644
--- a/wx+/tooltip.cpp
+++ b/wx+/tooltip.cpp
@@ -75,8 +75,10 @@ void Tooltip::show(const wxString& text, wxPoint mousePos, const wxImage* img)
if (txtChanged)
{
lastUsedText_ = text;
+ {
tipWindow_->staticTextMain_->SetLabelText(text);
- tipWindow_->staticTextMain_->Wrap(fastFromDIP(600));
+ tipWindow_->staticTextMain_->Wrap(dipToWxsize(600));
+ }
}
if (imgChanged || txtChanged)
@@ -88,8 +90,8 @@ void Tooltip::show(const wxString& text, wxPoint mousePos, const wxImage* img)
#endif
const wxPoint newPos = wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ?
- mousePos - wxPoint(fastFromDIP(TIP_WINDOW_OFFSET_DIP) + tipWindow_->GetSize().GetWidth(), 0) :
- mousePos + wxPoint(fastFromDIP(TIP_WINDOW_OFFSET_DIP), 0);
+ mousePos - wxPoint(dipToWxsize(TIP_WINDOW_OFFSET_DIP) + tipWindow_->GetSize().GetWidth(), 0) :
+ mousePos + wxPoint(dipToWxsize(TIP_WINDOW_OFFSET_DIP), 0);
if (newPos != tipWindow_->GetScreenPosition())
tipWindow_->Move(newPos);
bgstack15