[mythtv-commits] Ticket #226: Full screen playback when GUI size is smaller

MythTV mythtv at cvs.mythtv.org
Thu Aug 18 15:08:52 UTC 2005


#226: Full screen playback when GUI size is smaller
-------------------------------------------------+--------------------------
 Reporter:  ananthar at cs dot berkeley dot edu  |       Owner:  ijr
     Type:  defect                               |      Status:  new
 Priority:  minor                                |   Milestone:     
Component:  mythtv                               |     Version:     
 Severity:  low                                  |         Cc:                                       |  
-------------------------------------------------+--------------------------
 When GUI size is smaller, but "Use GUI size for playback" is unchecked in
 settings, watching LiveTV starts at full-screen like it should.

 But entering and exitting the EPG once breaks this. Playback remains at
 GUI size till LiveTV is restarted.

 This small change fixes the problem.


 {{{
 Index: libs/libmythtv/tv_play.cpp
 ===================================================================
 --- libs/libmythtv/tv_play.cpp  (revision 7064)
 +++ libs/libmythtv/tv_play.cpp  (working copy)
 @@ -3458,12 +3458,11 @@

      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));
 +        DisplayRes *display_res = DisplayRes::GetDisplayRes();
 +        int maxWidth = display_res->GetMaxWidth();
 +        int maxHeight = display_res->GetMaxHeight();
 +        mwnd->setGeometry(0, 0, maxWidth, maxHeight);
 +        mwnd->setFixedSize(QSize(maxWidth, maxHeight));
      }

      menurunning = false;
 }}}

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/226>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list