Skip to content

Commit

Permalink
[Fix] Pass the correct rect to update tooltip. Doesn't appear to make…
Browse files Browse the repository at this point in the history
… a difference in practice.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22178 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 13, 2024
1 parent 55f9e76 commit f674557
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mptrack/Mainbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ bool CMainToolBar::ShowUpdateInfo(const CString &newVersion, const CString &info
ClientToScreen(&pt);
if(!IsFloating())
{
CMainFrame::GetMainFrame()->GetWindowRect(rect);
LimitMax(pt.x, rect.right);
CRect windowRect;
CMainFrame::GetMainFrame()->GetWindowRect(windowRect);
LimitMax(pt.x, windowRect.right);
}

return m_tooltip.ShowUpdate(*this, newVersion, infoURL, rect, pt, ID_UPDATE_AVAILABLE);
Expand Down

0 comments on commit f674557

Please sign in to comment.