Permalink
Browse files

Fix slow OSD issue.

MythPainter::ExpireImages() had an incorrect comparison which resulted
in disabling this level of caching.
  • Loading branch information...
daniel-kristjansson committed Jun 24, 2012
1 parent 8fd31be commit 7190ddc5253a7f9b787881f4f03727fcf1abc076
Showing with 3 additions and 3 deletions.
  1. +2 −2 mythtv/libs/libmythui/mythpainter.cpp
  2. +1 −1 mythtv/libs/libmythui/mythpainter.h
@@ -537,12 +537,12 @@ void MythPainter::CheckFormatImage(MythImage *im)
}
}
-void MythPainter::ExpireImages(int max)
+void MythPainter::ExpireImages(int64_t max)
{
bool recompute = false;
while (!m_StringExpireList.empty())
{
- if (m_SoftwareCacheSize > max)
+ if (m_SoftwareCacheSize < max)
break;
QString oldmsg = m_StringExpireList.front();
@@ -106,7 +106,7 @@ class MUI_PUBLIC MythPainter
/// Creates a reference counted image, call DecrRef() to delete.
virtual MythImage* GetFormatImagePriv(void) = 0;
virtual void DeleteFormatImagePriv(MythImage *im) = 0;
- void ExpireImages(int max = 0);
+ void ExpireImages(int64_t max = 0);
void CheckFormatImage(MythImage *im);

0 comments on commit 7190ddc

Please sign in to comment.