From ce869730e6019b1dae4a013af94e92c935728e15 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 12 May 2023 05:43:01 +0300 Subject: [PATCH] Do not spam "No mouse driver found." in logs --- GUI/GraphicalUserInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GUI/GraphicalUserInterface.cpp b/GUI/GraphicalUserInterface.cpp index b93dfec..4382645 100644 --- a/GUI/GraphicalUserInterface.cpp +++ b/GUI/GraphicalUserInterface.cpp @@ -68,7 +68,9 @@ namespace GraphicalUserInterface if (unlikely(!FoundMouseDriver)) { - debug("No mouse driver found."); + static int once = 0; + if (!once++) + debug("No mouse driver found."); Mouse.X = Display->GetBuffer(200)->Width / 2; Mouse.Y = Display->GetBuffer(200)->Height / 2; Mouse.Z = 0;