Skip to content

Commit 3e10bc7

Browse files
author
Mark Kendall
committed
OSD: Don't clear the interactive screen when the OSD is shown.
This may not be optimal (i.e. the screen may get a little busy) but I'll see how it goes first. The alternative is to start adding some state management to ensure the interactive screen is redrawn once the menu/info has been cleared. Ref #9824
1 parent 3d970b8 commit 3e10bc7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

mythtv/libs/libmythtv/osd.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,13 @@ void OSD::HideAll(bool keepsubs, MythScreenType* except)
283283
while (it.hasNext())
284284
{
285285
it.next();
286-
if (!((keepsubs && (it.key() == OSD_WIN_SUBTITLE ||
287-
it.key() == OSD_WIN_TELETEXT)) ||
288-
(it.key() == OSD_WIN_BDOVERLAY) ||
289-
it.value() == except))
286+
bool match1 = keepsubs &&
287+
(it.key() == OSD_WIN_SUBTITLE ||
288+
it.key() == OSD_WIN_TELETEXT);
289+
bool match2 = it.key() == OSD_WIN_BDOVERLAY ||
290+
it.key() == OSD_WIN_INTERACT ||
291+
it.value() == except;
292+
if (!(match1 || match2))
290293
HideWindow(it.key());
291294
}
292295
}

0 commit comments

Comments
 (0)