Skip to content

Commit

Permalink
imp - Check cursor visibility each screensaver render
Browse files Browse the repository at this point in the history
---

The cursor needs to stay hidden from view when the screensaver renders its elements.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 15, 2024
1 parent 01b96a0 commit fd45da0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/Nitrocid/Misc/Screensaver/ScreensaverDisplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ internal static void DisplayScreensaver(BaseScreensaver Screensaver)

// Execute the actual screensaver logic
while (!OutOfSaver)
{
if (ConsoleWrapper.CursorVisible)
ConsoleWrapper.CursorVisible = false;
Screensaver.ScreensaverLogic();
}
}
catch (ThreadInterruptedException)
{
Expand Down

0 comments on commit fd45da0

Please sign in to comment.