Skip to content

Commit

Permalink
Fix slow OSD issue.
Browse files Browse the repository at this point in the history
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 7190ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythpainter.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter.h
Expand Up @@ -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);

Expand Down

0 comments on commit 7190ddc

Please sign in to comment.