We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd260a commit dff23f8Copy full SHA for dff23f8
1 file changed
libs/s25main/WindowManager.cpp
@@ -857,9 +857,11 @@ void WindowManager::DrawToolTip()
857
// Tooltip zeichnen
858
if(curTooltip && lastMousePos.isValid())
859
{
860
- // Horizontal pace between mouse position and tooltip border
861
- constexpr unsigned rightSpacing = 25;
862
- constexpr unsigned leftSpacing = 10;
+ constexpr unsigned cursorWidth = 32;
+ constexpr unsigned cursorPadding = 5;
+ // Horizontal space between mouse position and tooltip border
863
+ constexpr unsigned rightSpacing = cursorWidth + cursorPadding;
864
+ constexpr unsigned leftSpacing = cursorPadding;
865
DrawPoint ttPos = DrawPoint(lastMousePos.x + rightSpacing, lastMousePos.y);
866
unsigned right_edge = ttPos.x + curTooltip->getWidth();
867
0 commit comments