Skip to content

Commit

Permalink
Tooltip: fix non animated tooltips
Browse files Browse the repository at this point in the history
IWD at least has them
  • Loading branch information
bradallred committed Mar 31, 2018
1 parent bcdd814 commit b5917c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gemrb/core/GUI/Tooltip.cpp
Expand Up @@ -51,8 +51,12 @@ TooltipBackground::TooltipBackground(const TooltipBackground& bg)

void TooltipBackground::Reset()
{
// the animation starts with the curls side by side
animationPos = leftbg->Width + rightbg->Width;
if (animationSpeed) {
// the animation starts with the curls side by side
animationPos = leftbg->Width + rightbg->Width;
} else {
animationPos = 9999; // will get clamped at draw times
}
}

void TooltipBackground::SetMargin(int m)
Expand Down

0 comments on commit b5917c7

Please sign in to comment.