Ticket #10283: large-fonts.patch

File large-fonts.patch, 1.1 KB (added by Clayton Smith <argilo@…>, 9 years ago)

patch to fix large caption font bug

  • mythtv/libs/libmythtv/subtitlescreen.cpp

    diff --git a/mythtv/libs/libmythtv/subtitlescreen.cpp b/mythtv/libs/libmythtv/subtitlescreen.cpp
    index a44d790..2845d7b 100644
    a b SubtitleScreen::SubtitleScreen(MythPlayer *player, const char * name, 
    2626    m_textFontZoom(100),                    m_refreshArea(false),
    2727    m_fontStretch(fontStretch)
    2828{
    29     m_708fontSizes[0] = 36;
    30     m_708fontSizes[1] = 45;
    31     m_708fontSizes[2] = 60;
     29    m_708fontSizes[0] = -1;
     30    m_708fontSizes[1] = -1;
     31    m_708fontSizes[2] = -1;
    3232    m_removeHTML.setMinimal(true);
    3333
    3434#ifdef USING_LIBASS
    void SubtitleScreen::DisplayCC708Subtitles(void) 
    809809        video_aspect = m_player->GetVideoAspect();
    810810        QRect oldsafe = m_safeArea;
    811811        m_safeArea = m_player->GetVideoOutput()->GetSafeRect();
    812         if (oldsafe != m_safeArea)
     812        if ((oldsafe != m_safeArea) || (m_708fontSizes[1] < 0))
    813813        {
    814814            for (uint i = 0; i < 8; i++)
    815815                cc708service->windows[i].changed = true;