Ticket #3161: no_letterbox_in_guide.patch

File no_letterbox_in_guide.patch, 3.5 KB (added by celston AT katalix D com, 17 years ago)

Patch to turn letterbox settings to "off" in the guide

  • libs/libmythtv/guidegrid.h

     
    165165    QDateTime lastTime;
    166166
    167167    TV *m_player;
     168    int playerLetterbox;
    168169
    169170    QString channelOrdering;
    170171    QString dateformat;
  • libs/libmythtv/tv_play.h

     
    188188
    189189    void SetIgnoreKeys(bool ignore) { ignoreKeys = ignore; }
    190190
     191    void ToggleLetterbox(int letterboxMode = -1);
     192    void ToggleLetterbox(int letterboxMode, bool silent);
     193    int GetLetterbox(void);
     194
    191195  public slots:
    192196    void HandleOSDClosed(int osdType);
    193197
     
    233237
    234238    void ChangeVolume(bool up);
    235239    void ToggleMute(void);
    236     void ToggleLetterbox(int letterboxMode = -1);
    237240
    238241    bool FillMenuTracks(OSDGenericTree*, uint type);
    239242    void ChangeTrack(uint type, int dir);
  • libs/libmythtv/guidegrid.cpp

     
    552552    {
    553553        if (m_player->IsRunning() == true && videoRect.width() > 0 &&
    554554            videoRect.height() > 0)
     555        {
    555556            m_player->EmbedOutput(this->winId(), videoRect.x(), videoRect.y(),
    556557                                  videoRect.width(), videoRect.height());
     558            playerLetterbox = m_player->GetLetterbox();
     559            m_player->ToggleLetterbox(kLetterbox_Off, true);
     560        }
    557561    }
    558562
    559563    fillProgramInfos();
     
    16101614    setFocus();
    16111615
    16121616    if (m_player && videoRect.height() > 0 && videoRect.width() > 0)
     1617    {
    16131618        m_player->EmbedOutput(this->winId(), videoRect.x(), videoRect.y(),
    16141619                              videoRect.width(), videoRect.height());
     1620        playerLetterbox = m_player->GetLetterbox();
     1621        m_player->ToggleLetterbox(kLetterbox_Off, true);
     1622    }
    16151623}
    16161624
    16171625void GuideGrid::enter()
     
    16201628    {
    16211629        timeCheck->stop();
    16221630        if (m_player)
     1631        {
    16231632            m_player->StopEmbeddingOutput();
     1633            m_player->ToggleLetterbox(playerLetterbox, true);
     1634        }
    16241635    }
    16251636
    16261637    unsetCursor();
     
    16341645    {
    16351646        timeCheck->stop();
    16361647        if (m_player)
     1648        {
    16371649            m_player->StopEmbeddingOutput();
     1650            m_player->ToggleLetterbox(playerLetterbox, true);
     1651        }
    16381652    }
    16391653
    16401654    unsetCursor();
  • libs/libmythtv/tv_play.cpp

     
    54855485
    54865486void TV::ToggleLetterbox(int letterboxMode)
    54875487{
     5488    ToggleLetterbox(letterboxMode, false);
     5489}
     5490
     5491void TV::ToggleLetterbox(int letterboxMode, bool silent)
     5492{
    54885493    nvp->ToggleLetterbox(letterboxMode);
    54895494    int letterbox = nvp->GetLetterbox();
    54905495    QString text;
     
    55005505        default:                      text = tr("Off"); break;
    55015506    }
    55025507
    5503     if (GetOSD() && !browsemode && !GetOSD()->IsRunningTreeMenu())
     5508    if (GetOSD() && !browsemode && !GetOSD()->IsRunningTreeMenu() && !silent)
    55045509        GetOSD()->SetSettingsText(text, 3);
    55055510}
    55065511
     5512int TV::GetLetterbox(void)
     5513{
     5514    if (nvp)
     5515        return nvp->GetLetterbox();
     5516    return false;
     5517}
     5518
    55075519void TV::EPGChannelUpdate(uint chanid, QString channum)
    55085520{
    55095521    if (chanid && !channum.isEmpty())