From 0c9f8169db8d76069cb2fad4b4564eadb753d6be Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 14 Sep 2024 22:11:51 +1000 Subject: [PATCH] Make OSD toasts at least `OSDMessageDuration` instead of exactly that --- src/BizHawk.Client.Common/DisplayManager/OSDManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs b/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs index 6ca3debc37e..5367836ef68 100644 --- a/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs +++ b/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs @@ -86,7 +86,7 @@ private string MakeFrameCounter() public void AddMessage(string message, int? duration = null) => _messages.Add(new() { Message = message, - ExpireAt = DateTime.Now + TimeSpan.FromSeconds(duration ?? _config.OSDMessageDuration), + ExpireAt = DateTime.Now + TimeSpan.FromSeconds(Math.Max(_config.OSDMessageDuration, duration ?? 0)), }); public void ClearRamWatches()