Reduce OSD flickering

This commit is contained in:
Kamil Trzciński 2022-11-16 01:10:44 +01:00
parent 7a66bb8858
commit 75b47af114
3 changed files with 15 additions and 5 deletions

View file

@ -266,8 +266,8 @@ namespace PowerControl
try
{
// recreate OSD if not index 0
if (osd != null && osd.OSDIndex() == 0)
// recreate OSD if index 0
if (OSDHelpers.OSDIndex("Power Control") == 0 && OSD.GetOSDCount() > 1)
osdClose();
if (osd == null)
osd = new OSD("Power Control");