[mythtv] [patch] init the LCD earlier in mythfrontend
Leo Weppelman
leo at wau.mis.ah.nl
Sun Aug 29 16:26:12 EDT 2004
The attached patch moves the initialisation of the LCD device so that it
is called earlier. This gives the lcd-code enough time to finish the
initialisation before the first menu is drawn.
Previously, the display always missed the first menu.
Leo.
-------------- next part --------------
Index: main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/main.cpp,v
retrieving revision 1.154
diff -u -r1.154 main.cpp
--- main.cpp 22 Aug 2004 18:14:16 -0000 1.154
+++ main.cpp 29 Aug 2004 20:07:42 -0000
@@ -817,6 +817,14 @@
return -1;
}
+ lcd_host = gContext->GetSetting("LCDHost", "localhost");
+ lcd_port = gContext->GetNumSetting("LCDPort", 13666);
+ if (lcd_host.length() > 0 && lcd_port > 1024 && gContext->GetLCDDevice())
+ {
+ gContext->GetLCDDevice()->connectToHost(lcd_host, lcd_port);
+ gContext->GetLCDDevice()->setupLEDs(RemoteGetRecordingMask);
+ }
+
if (!gContext->OpenDatabase(db))
{
printf("couldn't open db\n");
@@ -896,15 +904,6 @@
gContext->UpdateImageCache();
- lcd_host = gContext->GetSetting("LCDHost", "localhost");
- lcd_port = gContext->GetNumSetting("LCDPort", 13666);
-
- if (lcd_host.length() > 0 && lcd_port > 1024 && gContext->GetLCDDevice())
- {
- gContext->GetLCDDevice()->connectToHost(lcd_host, lcd_port);
- gContext->GetLCDDevice()->setupLEDs(RemoteGetRecordingMask);
- }
-
if (gContext->GetNumSetting("EnableXbox") == 1)
{
xbox = new XBox();
More information about the mythtv-dev
mailing list