Ticket #1894: browseicons.patch

File browseicons.patch, 1.1 KB (added by mythtv@…, 18 years ago)

patch to resolve incorrect browse mode icon handling

  • libs/libmythtv/osdtypes.cpp

     
    12451245                             int scalew, int scaleh)
    12461246{
    12471247    QString ckey;
    1248    
     1248
     1249    m_isvalid = false;
     1250
    12491251    if (!filename.isEmpty() && filename.length() >= 2)
    12501252    {
    12511253        ckey = OSDImageCache::CreateKey(
     
    12531256    }
    12541257    else
    12551258    {
    1256         // this method requires a backing file
    12571259        return;
    12581260    }
    12591261 
     
    12691271        m_alpha     = value->m_alpha;
    12701272        m_imagesize = value->m_imagesize;
    12711273        m_isvalid   = true;
     1274        m_filename  = filename;
    12721275
    12731276        // Put the old image back to the cache so it can be reused in the
    12741277        // future, and possibly freed by the cache system if the size limit
     
    13081311    QImage tmp2 = tmpimage.smoothScale(imwidth, imheight);
    13091312
    13101313    m_isvalid = true;
     1314    m_filename = filename;
    13111315
    13121316    m_yuv = new unsigned char[imwidth * imheight * 3 / 2];
    13131317    m_ybuffer = m_yuv;