7 #define DIE(format, ...) do { \
8 fprintf(stderr, "Died at %s:%d: ", __FILE__, __LINE__ ); \
9 fprintf(stderr, format "\n", ## __VA_ARGS__); \
13 static SDL_Surface* buttonSrf = 0;
14 static SDL_Rect buttonRect;
16 static const unsigned long totalAnimLen = 1;
18 static unsigned long frameCounter = 0;
24 buttonSrf = IMG_Load("/usr/share/icons/hicolor/scalable/hildon/general_overlay_back.png");
27 buttonRect.x = GUI.Width - buttonSrf->w;
29 buttonRect.w = buttonSrf->w;
30 buttonRect.h = buttonSrf->h;
33 bool exitRequiresDraw()
35 if (!Config.fullscreen) return false;
36 if (frameCounter > totalAnimLen) {
45 void exitDraw(SDL_Surface* where)
47 SDL_BlitSurface(buttonSrf, 0, where, &buttonRect);