Skip to content

Commit

Permalink
libmythui: Fix compilation of MythPainter on Qt4.5
Browse files Browse the repository at this point in the history
Crazy api change...
  • Loading branch information
Mark Kendall committed Mar 16, 2011
1 parent 79900ac commit 02cfbb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythui/mythpainter.cpp
Expand Up @@ -283,7 +283,7 @@ MythImage *MythPainter::GetImageFromString(const QString &msg,
MythImage *im = GetFormatImage();
if (im)
{
m_SoftwareCacheSize += im->byteCount();
m_SoftwareCacheSize += im->bytesPerLine() * im->height();
DrawTextPriv(im, msg, flags, r, font);
m_StringToImageMap[incoming] = im;
m_StringExpireList.push_back(incoming);
Expand Down Expand Up @@ -343,7 +343,7 @@ MythImage* MythPainter::GetImageFromRect(const QRect &area, int radius,
MythImage *im = GetFormatImage();
if (im)
{
m_SoftwareCacheSize += im->byteCount();
m_SoftwareCacheSize += (im->bytesPerLine() * im->height());
DrawRectPriv(im, area, radius, ellipse, fillBrush, linePen);
m_StringToImageMap[incoming] = im;
m_StringExpireList.push_back(incoming);
Expand Down Expand Up @@ -400,7 +400,7 @@ void MythPainter::ExpireImages(int max)

if (oldim)
{
m_SoftwareCacheSize -= oldim->byteCount();
m_SoftwareCacheSize -= oldim->bytesPerLine() * oldim->height();
oldim->DownRef();
}
}
Expand Down

0 comments on commit 02cfbb1

Please sign in to comment.