+ dsk_lcd.setRedrawTask(main);
+
+
+ eDebug("Loading spinners...");
+
+ {
+ int i;
+#define MAX_SPINNER 64
+ ePtr<gPixmap> wait[MAX_SPINNER];
+ for (i=0; i<MAX_SPINNER; ++i)
+ {
+ char filename[strlen(DATADIR) + 41];
+ sprintf(filename, DATADIR "/enigma2/skin_default/spinner/wait%d.png", i + 1);
+ loadPNG(wait[i], filename);
+
+ if (!wait[i])
+ {
+ if (!i)
+ eDebug("failed to load %s! (%m)", filename);
+ else
+ eDebug("found %d spinner!\n", i);
+ break;
+ }
+ }
+ if (i)
+ my_dc->setSpinner(eRect(ePoint(100, 100), wait[0]->size()), wait, i);
+ else
+ my_dc->setSpinner(eRect(100, 100, 0, 0), wait, 1);
+ }