|
The past few months I’ve been seeing a minor problem when it comes to leaving the guide in live TV. My GUI X/Y settings make it offset while TV is fullscreen so when I enter the guide the screen shifts (to accommodate my GUI X/Y settings) but doesn’t switch back when I leave the guide.
I admit I don’t know the proper procedure for submitting a patch but this is a small one against today’s svn. All I do is save the window bounds before the guide comes up and restore then after the guide exits.
Hope this helps someone.
- Mark.
*** tv_play.cpp.orig Sat Oct 15 15:16:02 2005 --- tv_play.cpp Sat Oct 15 15:21:39 2005 *************** void TV::doLoadMenu(void) *** 3635,3641 ****
bool fullscreen = !gContext->GetNumSetting("GuiSizeForTV", 0); MythMainWindow* mwnd = gContext->GetMainWindow(); ! if (fullscreen) { int xbase, ybase, screenwidth, screenheight; --- 3635,3643 ----
bool fullscreen = !gContext->GetNumSetting("GuiSizeForTV", 0); MythMainWindow* mwnd = gContext->GetMainWindow(); ! ! QRect saved_bounds = QRect(mwnd->geometry().topLeft(), mwnd->size()); ! if (fullscreen) { int xbase, ybase, screenwidth, screenheight; *************** void TV::doLoadMenu(void) *** 3665,3679 ****
StopEmbeddingOutput();
! if (fullscreen) ! { ! int xbase, ybase, screenwidth, screenheight; ! float wmult, hmult; ! gContext->GetScreenSettings(xbase, screenwidth, wmult, ! ybase, screenheight, hmult); ! mwnd->setGeometry(xbase, ybase, screenwidth, screenheight); ! mwnd->setFixedSize(QSize(screenwidth, screenheight)); ! }
menurunning = false; } --- 3667,3674 ----
StopEmbeddingOutput();
! mwnd->setGeometry(0, 0, saved_bounds.width(), saved_bounds.height()); ! mwnd->setFixedSize(saved_bounds.size());
menurunning = false; }
|
_______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
