[mythtv] [PATCH] MythTV Hide OSD
Dan M
dan at milkcarton.com
Thu Apr 17 16:58:24 EDT 2003
Attached is a simple patch to TV::UpdateOSD to hide the OSD if the user
presses "I" while the OSD is currently visible. This functionality is
pretty consistent with the way most TV's work
-dan
-------------- next part --------------
Index: libs/libmythtv/tv_play.cpp
===================================================================
RCS file: /var/lib/cvs/MC/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.44
diff -u -d -r1.44 tv_play.cpp
--- libs/libmythtv/tv_play.cpp 17 Apr 2003 15:16:38 -0000 1.44
+++ libs/libmythtv/tv_play.cpp 17 Apr 2003 23:50:55 -0000
@@ -1485,16 +1485,26 @@
void TV::UpdateOSD(void)
{
- QString title, subtitle, desc, category, starttime, endtime;
- QString callsign, iconpath, channelname, chanid;
+ //Turn off the OSD if it was previous on
+ if (osd->Visible())
+ {
+ osd->HideSet("program_info");
+ osd->HideSet("channel_number");
+ }
+ else
+ {
+ QString title, subtitle, desc, category, starttime, endtime;
+ QString callsign, iconpath, channelname, chanid;
- GetChannelInfo(activerecorder, title, subtitle, desc, category,
- starttime, endtime, callsign, iconpath, channelname, chanid);
+ GetChannelInfo(activerecorder, title, subtitle, desc, category,
+ starttime, endtime, callsign, iconpath, channelname, chanid);
- osd->SetInfoText(title, subtitle, desc, category, starttime, endtime,
- callsign, iconpath, osd_display_time);
- osd->SetChannumText(channelname, osd_display_time);
+ osd->SetInfoText(title, subtitle, desc, category, starttime, endtime,
+ callsign, iconpath, osd_display_time);
+ osd->SetChannumText(channelname, osd_display_time);
+ }
}
+
void TV::UpdateOSDInput(void)
{
More information about the mythtv-dev
mailing list