Ticket #226: tv_play_fullscreen.patch

File tv_play_fullscreen.patch, 912 bytes (added by ananthar at cs dot berkeley dot edu, 16 years ago)
  • libs/libmythtv/tv_play.cpp

     
    34583458
    34593459    if (fullscreen)
    34603460    {
    3461         int xbase, ybase, screenwidth, screenheight;
    3462         float wmult, hmult;
    3463         gContext->GetScreenSettings(xbase, screenwidth, wmult,
    3464                                     ybase, screenheight, hmult);
    3465         mwnd->setGeometry(xbase, ybase, screenwidth, screenheight);
    3466         mwnd->setFixedSize(QSize(screenwidth, screenheight));
     3461        DisplayRes *display_res = DisplayRes::GetDisplayRes();
     3462        int maxWidth = display_res->GetMaxWidth();
     3463        int maxHeight = display_res->GetMaxHeight();
     3464        mwnd->setGeometry(0, 0, maxWidth, maxHeight);
     3465        mwnd->setFixedSize(QSize(maxWidth, maxHeight));
    34673466    }
    34683467
    34693468    menurunning = false;