summaryrefslogtreecommitdiff
path: root/wx+/tooltip.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /wx+/tooltip.cpp
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
Diffstat (limited to 'wx+/tooltip.cpp')
-rw-r--r--wx+/tooltip.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/wx+/tooltip.cpp b/wx+/tooltip.cpp
index 447cbb1f..3431e339 100644
--- a/wx+/tooltip.cpp
+++ b/wx+/tooltip.cpp
@@ -50,8 +50,8 @@ public:
Tooltip::Tooltip() : tipWindow(new PopupFrameGenerated(nullptr))
{
-#ifdef FFS_WIN //neither looks good nor works at all on Linux
- tipWindow->Disable(); //prevent window stealing focus!
+#if defined FFS_WIN //prevent window stealing focus!
+ tipWindow->Disable(); //neither looks good nor works at all on Linux; no visible difference on OS X
#endif
hide();
}
@@ -68,7 +68,10 @@ void Tooltip::show(const wxString& text, wxPoint mousePos, const wxBitmap* bmp)
const wxBitmap& newBmp = bmp ? *bmp : wxNullBitmap;
if (!isEqual(tipWindow->m_bitmapLeft->GetBitmap(), newBmp))
+ {
tipWindow->m_bitmapLeft->SetBitmap(newBmp);
+ tipWindow->Refresh(); //needed if bitmap size changed!
+ }
if (text != tipWindow->m_staticTextMain->GetLabel())
{
bgstack15