[mythtv] Leaving guide when LiveTV is fullscreen and GUI is offset

Buechler, Mark R Mark_R_Buechler at bausch.com
Sat Oct 15 19:35:17 UTC 2005


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;

  } 






EMAIL DISCLAIMER 

Please Note: The information contained in this message may be privileged and
confidential, protected from disclosure, and/or intended only for the use of
the individual or entity named above. If the reader of this message is not
the intended recipient, or an employee or agent responsible for delivering
this message to the intended recipient, you are hereby notified that any
disclosure, distribution, copying or other dissemination of this
communication is strictly prohibited. If you received this communication in
error, please immediately reply to the sender, delete the message and
destroy all copies of it.

Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20051015/08e77539/attachment.htm


More information about the mythtv-dev mailing list