Ticket #5937: animatedmaps.diff

File animatedmaps.diff, 3.0 KB (added by Marc Alban <marcalban@…>, 15 years ago)

patch to fix animated weather maps

  • mythplugins/mythweather/mythweather/weatherScreen.cpp

     
    373373    {
    374374        MythUIImage *img = (MythUIImage *) widget;
    375375
    376         img->SetImageCount(0, m_count);
     376        img->SetImageCount(0, m_count - 1);
     377        img->SetDelay(500);
    377378        img->Load();
    378379    }
    379380    return;
  • mythplugins/mythweather/mythweather/weather-screens.xml

     
    7878    <screen name="Animated Map" hasunits="no">
    7979        <datum name="amdesc" />
    8080        <datum name="updatetime" />
    81         <datum name="datum" />
     81        <datum name="animatedimage" />
    8282    </screen>
    8383
    8484    <screen name="Severe Weather Alerts" hasunits="no">
     
    117117        <datum name="updatetime" />
    118118        <datum name="location" />
    119119    </screen> -->
    120 </screens>
    121  No newline at end of file
     120</screens>
  • mythplugins/mythweather/theme/default/weather-ui.xml

     
    399399            <align>allcenter</align>
    400400        </textarea>
    401401
    402         <imagetype name="animatedimagetype">
     402        <imagetype name="animatedimage">
    403403            <area>160,225,485,300</area>
    404404        </imagetype>
    405405    </window>
  • mythplugins/mythweather/theme/default-wide/weather-ui.xml

     
    399399            <align>allcenter</align>
    400400        </textarea>
    401401
    402         <imagetype name="animatedimagetype">
     402        <imagetype name="animatedimage">
    403403            <area>160,225,485,300</area>
    404404        </imagetype>
    405405    </window>
  • mythtv/libs/libmythui/mythuiimage.h

     
    3030    void SetImage(MythImage *img) __attribute__ ((deprecated));
    3131    void SetImages(QVector<MythImage *> &images) __attribute__ ((deprecated));
    3232
     33    void SetDelay(int delayms);
     34
    3335    QString GenImageLabel(const QString &filename, int w, int h);
    3436    QString GenImageLabel(int w, int h);
    3537
     
    5254    virtual void CreateCopy(MythUIType *parent);
    5355    virtual void Finalize(void);
    5456
    55     void SetDelay(int delayms);
    56 
    5757    void SetSize(int width, int height);
    5858    void SetSize(const QSize &size);
    5959    void ForceSize(const QSize &size);