Extract elapsedAtLeast to core/util, dedupe the throttle rationale, and correct the alloc-count/PLAN citations
This commit is contained in:
@@ -322,7 +322,7 @@ void maybeShowTooltip() {
|
||||
const HoverKind k = g_panel.hovered.kind;
|
||||
if (k != HoverKind::TopBarButton && k != HoverKind::BottomBarButton) return;
|
||||
const unsigned int now = GetTickCount();
|
||||
if (now - g_panel.hoverSinceTick >= kTooltipDelayMs) {
|
||||
if (elapsedAtLeast(now, g_panel.hoverSinceTick, kTooltipDelayMs)) {
|
||||
g_panel.tooltipShown = true;
|
||||
invalidatePanel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user