Index: gui/src/wpsdrawer.cpp =================================================================== --- gui/src/wpsdrawer.cpp (revision 52) +++ gui/src/wpsdrawer.cpp (working copy) @@ -3,13 +3,16 @@ #include #include #include -// -#define DEBUGF1 qDebug +//#define DEBUGF1 qDebug +#define DEBUGF1 + class WpsDrawer *drawer; QPixmap *WpsDrawer::pix = NULL; QImage WpsDrawer::backdrop; -proxy_api WpsDrawer::api; +proxy_api WpsDrawer::api; +QTimer *WpsDrawer::mytimer = NULL; + /*void wps_putsxy(int x, int y, const unsigned char *str); void wps_transparent_bitmap_part(const void *src, int src_x, int src_y, int stride, int x, int y, int width, int height); @@ -21,7 +24,7 @@ s.vsprintf(fmt,ap); va_end(ap); s.replace("\n",""); - qDebug()<start(100); } void WpsDrawer::putsxy(int x, int y, const unsigned char *str) { Index: gui/src/wpsdrawer.h =================================================================== --- gui/src/wpsdrawer.h (revision 52) +++ gui/src/wpsdrawer.h (working copy) @@ -5,7 +5,8 @@ #include #include "..\..\proxy\api.h" #include "QMp3State.h" -#include "qwpsstate.h" +#include "qwpsstate.h" +#include // typedef int (*pfwps_init)(const char* filename,struct proxy_api *api); @@ -17,14 +18,15 @@ class WpsDrawer : public QWidget { Q_OBJECT - + pfwps_init wps_init; pfwps_display wps_display; pfwps_refresh wps_refresh; - + static proxy_api api; static QPixmap *pix; - static QImage backdrop; + static QImage backdrop; + static QTimer *mytimer; QWpsState *wpsState; QMp3State *mp3State; @@ -35,10 +37,10 @@ public: WpsDrawer(QWpsState *ws,QMp3State *ms); void WpsInit(QString wpsfile); - - - - + + + + static void putsxy(int x, int y, const unsigned char *str); static void transparent_bitmap_part(const void *src, int src_x, int src_y, int stride, int x, int y, int width, int height); @@ -54,7 +56,7 @@ public slots: void slotSetVolume(); void slotSetProgress(); - + void slotVolumeChanged(int); void slotWpsStateChanged(wpsstate); void slotMp3StateChanged(mp3state); Index: proxy/proxy.c =================================================================== --- proxy/proxy.c (revision 52) +++ proxy/proxy.c (working copy) @@ -53,10 +53,10 @@ int wps_refresh(){ DEBUGF1("----------------------------------\n"); int res = gui_wps_refresh(&gwps,0,WPS_REFRESH_ALL); - if(res) - printf("\nWPS refreshed\n"); - else - printf("\nWPS not refreshed\n"); + //if(res) + //printf("\nWPS refreshed\n"); + //else + //printf("\nWPS not refreshed\n"); return res; }