X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6268c151c84762a9d664b6e9a7e938ef2619415..55c534803fc222e8fea96cada9b7715763814046:/src/generic/richtooltipg.cpp diff --git a/src/generic/richtooltipg.cpp b/src/generic/richtooltipg.cpp index 0c00e24a67..2986f9be31 100644 --- a/src/generic/richtooltipg.cpp +++ b/src/generic/richtooltipg.cpp @@ -3,7 +3,6 @@ // Purpose: Implementation of wxRichToolTip. // Author: Vadim Zeitlin // Created: 2011-10-07 -// RCS-ID: $Id$ // Copyright: (c) 2011 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -239,7 +238,7 @@ public: if ( !rect || rect->IsEmpty() ) pos = GetTipPoint(); else - pos = wxPoint( rect->x + rect->width / 2, rect->y + rect->height / 2 ); + pos = GetParent()->ClientToScreen( wxPoint( rect->x + rect->width / 2, rect->y + rect->height / 2 ) ); // We want our anchor point to coincide with this position so offset // the position of the top left corner passed to Move() accordingly. @@ -561,6 +560,8 @@ private: SetShape(path); #else // !wxUSE_GRAPHICS_CONTEXT + wxUnusedVar(tipKind); + int x = contentSize.x/2, yApex = 0, dy = 0;