~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/mythimage.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-08 23:08:37 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908230837-zrm2j6wutp76hwso
Tags: 0.22.0~trunk21742-0ubuntu1
* New upstream checkout (21742)
  - Fixes FTBFS on PPC. See changeset 21571 for more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
{
87
87
    if (m_ui && m_RefCount == 1 && m_cached)
88
88
        m_ui->ExcludeFromCacheSize(this);
89
 
    *(QImage *)this = img;
 
89
    *(static_cast<QImage *> (this)) = img;
90
90
    if (m_ui && m_RefCount == 1 && m_cached)
91
91
        m_ui->IncludeInCacheSize(this);
92
92
    SetChanged();
104
104
 
105
105
    if (m_isGradient)
106
106
    {
107
 
        *(QImage *)this = QImage(newSize, QImage::Format_ARGB32);
 
107
        *(static_cast<QImage *> (this)) = QImage(newSize, QImage::Format_ARGB32);
108
108
        MakeGradient(*this, m_gradBegin, m_gradEnd, m_gradAlpha, m_gradDirection);
109
109
        SetChanged();
110
110
    }