Ticket #2586: 2586-v2.patch

File 2586-v2.patch, 2.1 KB (added by barnasc, 18 years ago)
  • libs/libmythtv/osdtypeteletext.cpp

     
    11/* =============================================================
    22 * File  : osdtypeteletext.cpp
    33 * Author: Frank Muenchow <beebof@gmx.de>
    4  *         Martin Barnasconi
     4 *         Martin Barnasconi <martin@barnasconi.net>
    55 * Date  : 2005-10-25
    66 *
    77 * This program is free software; you can redistribute it
     
    248248            {
    249249                case VBI_IVTV:
    250250                    b1 = hamm8(buf, &err);
    251                     b2 = hamm8(buf + 37, & err);
    252                     if (err & 0xF00)
     251                    b2 = hamm8(buf + 37, &err);
     252                    if (err & 0xF000)
    253253                        return;
    254254                     break;
    255255                case VBI_DVB:
     
    512512                m_pageinput[2] = ' ';
    513513            }
    514514
     515            PageUpdated(m_curpage, m_cursubpage);
    515516            break;
    516517
    517518        case TTKey::kNextPage:
     
    911912    hold = false;
    912913    endbox = false;
    913914    startbox = false;
     915    uint flof_link_count = 0;
    914916
    915917    if (row == 1)
    916918    {
     
    942944                fgcolor = ch & 7;
    943945                mosaic = false;
    944946                conceal = false;
     947                // increment FLOF/FastText count if menu item detected
     948                flof_link_count += (row == 25) ? 1 : 0;
    945949                goto ctrl;
    946950            case 0x08: // flash
    947951                // XXX
     
    10081012                break;
    10091013        }
    10101014
     1015        // Hide FastText/FLOF menu characters if not available
     1016        if (flof_link_count && (flof_link_count <= 6))
     1017        {
     1018            const TeletextSubPage *ttpage =
     1019                FindSubPage(m_curpage, m_cursubpage);
     1020
     1021            if (ttpage)
     1022            {
     1023                bool has_flof = ttpage->floflink[flof_link_count - 1];
     1024                ch = (has_flof) ? ch : ' ';
     1025            }
     1026        }
     1027
    10111028        newfgcolor = fgcolor;
    10121029        newbgcolor = bgcolor;
    10131030