Extract elapsedAtLeast to core/util, dedupe the throttle rationale, and correct the alloc-count/PLAN citations

This commit is contained in:
2026-08-03 14:58:33 -04:00
parent 170b2e4994
commit 32c7e959ae
7 changed files with 129 additions and 24 deletions
+1 -1
View File
@@ -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();
}