Need to skipp the first half of ShowHint if the platform doesn't
have transparency support yet. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2434,6 +2434,7 @@ void wxFrameManager::OnHintFadeTimer(wxTimerEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void wxFrameManager::ShowHint(const wxRect& rect)
|
void wxFrameManager::ShowHint(const wxRect& rect)
|
||||||
{
|
{
|
||||||
|
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||||
// First, determine if the operating system can handle transparency.
|
// First, determine if the operating system can handle transparency.
|
||||||
// Transparency is available on Win2000 and above
|
// Transparency is available on Win2000 and above
|
||||||
|
|
||||||
@@ -2489,9 +2490,6 @@ void wxFrameManager::ShowHint(const wxRect& rect)
|
|||||||
// Until a better system color is decided upon we'll just use
|
// Until a better system color is decided upon we'll just use
|
||||||
// blue.
|
// blue.
|
||||||
p->SetBackgroundColour(*wxBLUE);
|
p->SetBackgroundColour(*wxBLUE);
|
||||||
#else
|
|
||||||
wxUnusedVar(pt);
|
|
||||||
wxUnusedVar(size);
|
|
||||||
#endif
|
#endif
|
||||||
m_hint_wnd->Show();
|
m_hint_wnd->Show();
|
||||||
|
|
||||||
@@ -2518,6 +2516,7 @@ void wxFrameManager::ShowHint(const wxRect& rect)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (m_last_hint != rect)
|
if (m_last_hint != rect)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user