Ticket #1894: browseicons.patch
File browseicons.patch, 1.1 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/osdtypes.cpp
1245 1245 int scalew, int scaleh) 1246 1246 { 1247 1247 QString ckey; 1248 1248 1249 m_isvalid = false; 1250 1249 1251 if (!filename.isEmpty() && filename.length() >= 2) 1250 1252 { 1251 1253 ckey = OSDImageCache::CreateKey( … … 1253 1256 } 1254 1257 else 1255 1258 { 1256 // this method requires a backing file1257 1259 return; 1258 1260 } 1259 1261 … … 1269 1271 m_alpha = value->m_alpha; 1270 1272 m_imagesize = value->m_imagesize; 1271 1273 m_isvalid = true; 1274 m_filename = filename; 1272 1275 1273 1276 // Put the old image back to the cache so it can be reused in the 1274 1277 // future, and possibly freed by the cache system if the size limit … … 1308 1311 QImage tmp2 = tmpimage.smoothScale(imwidth, imheight); 1309 1312 1310 1313 m_isvalid = true; 1314 m_filename = filename; 1311 1315 1312 1316 m_yuv = new unsigned char[imwidth * imheight * 3 / 2]; 1313 1317 m_ybuffer = m_yuv;