Ticket #3161: no_letterbox_in_guide.patch
File no_letterbox_in_guide.patch, 3.5 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/guidegrid.h
165 165 QDateTime lastTime; 166 166 167 167 TV *m_player; 168 int playerLetterbox; 168 169 169 170 QString channelOrdering; 170 171 QString dateformat; -
libs/libmythtv/tv_play.h
188 188 189 189 void SetIgnoreKeys(bool ignore) { ignoreKeys = ignore; } 190 190 191 void ToggleLetterbox(int letterboxMode = -1); 192 void ToggleLetterbox(int letterboxMode, bool silent); 193 int GetLetterbox(void); 194 191 195 public slots: 192 196 void HandleOSDClosed(int osdType); 193 197 … … 233 237 234 238 void ChangeVolume(bool up); 235 239 void ToggleMute(void); 236 void ToggleLetterbox(int letterboxMode = -1);237 240 238 241 bool FillMenuTracks(OSDGenericTree*, uint type); 239 242 void ChangeTrack(uint type, int dir); -
libs/libmythtv/guidegrid.cpp
552 552 { 553 553 if (m_player->IsRunning() == true && videoRect.width() > 0 && 554 554 videoRect.height() > 0) 555 { 555 556 m_player->EmbedOutput(this->winId(), videoRect.x(), videoRect.y(), 556 557 videoRect.width(), videoRect.height()); 558 playerLetterbox = m_player->GetLetterbox(); 559 m_player->ToggleLetterbox(kLetterbox_Off, true); 560 } 557 561 } 558 562 559 563 fillProgramInfos(); … … 1610 1614 setFocus(); 1611 1615 1612 1616 if (m_player && videoRect.height() > 0 && videoRect.width() > 0) 1617 { 1613 1618 m_player->EmbedOutput(this->winId(), videoRect.x(), videoRect.y(), 1614 1619 videoRect.width(), videoRect.height()); 1620 playerLetterbox = m_player->GetLetterbox(); 1621 m_player->ToggleLetterbox(kLetterbox_Off, true); 1622 } 1615 1623 } 1616 1624 1617 1625 void GuideGrid::enter() … … 1620 1628 { 1621 1629 timeCheck->stop(); 1622 1630 if (m_player) 1631 { 1623 1632 m_player->StopEmbeddingOutput(); 1633 m_player->ToggleLetterbox(playerLetterbox, true); 1634 } 1624 1635 } 1625 1636 1626 1637 unsetCursor(); … … 1634 1645 { 1635 1646 timeCheck->stop(); 1636 1647 if (m_player) 1648 { 1637 1649 m_player->StopEmbeddingOutput(); 1650 m_player->ToggleLetterbox(playerLetterbox, true); 1651 } 1638 1652 } 1639 1653 1640 1654 unsetCursor(); -
libs/libmythtv/tv_play.cpp
5485 5485 5486 5486 void TV::ToggleLetterbox(int letterboxMode) 5487 5487 { 5488 ToggleLetterbox(letterboxMode, false); 5489 } 5490 5491 void TV::ToggleLetterbox(int letterboxMode, bool silent) 5492 { 5488 5493 nvp->ToggleLetterbox(letterboxMode); 5489 5494 int letterbox = nvp->GetLetterbox(); 5490 5495 QString text; … … 5500 5505 default: text = tr("Off"); break; 5501 5506 } 5502 5507 5503 if (GetOSD() && !browsemode && !GetOSD()->IsRunningTreeMenu() )5508 if (GetOSD() && !browsemode && !GetOSD()->IsRunningTreeMenu() && !silent) 5504 5509 GetOSD()->SetSettingsText(text, 3); 5505 5510 } 5506 5511 5512 int TV::GetLetterbox(void) 5513 { 5514 if (nvp) 5515 return nvp->GetLetterbox(); 5516 return false; 5517 } 5518 5507 5519 void TV::EPGChannelUpdate(uint chanid, QString channum) 5508 5520 { 5509 5521 if (chanid && !channum.isEmpty())