Do not spam "No mouse driver found." in logs

This commit is contained in:
Alex 2023-05-12 05:43:01 +03:00
parent c7046fe06f
commit ce869730e6
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -68,6 +68,8 @@ namespace GraphicalUserInterface
if (unlikely(!FoundMouseDriver))
{
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;