#include "platform.h"
#include "sdlv.h"
+#define BACK_BUTTON_IMG_PATH \
+ "/usr/share/icons/hicolor/scalable/hildon/general_overlay_back.png"
+
#define DIE(format, ...) do { \
fprintf(stderr, "Died at %s:%d: ", __FILE__, __LINE__ ); \
fprintf(stderr, format "\n", ## __VA_ARGS__); \
static unsigned long frameCounter = 0;
-void exitReset()
+void ExitBtnReset()
{
frameCounter = 0;
if (!buttonSrf) {
- buttonSrf = IMG_Load("/usr/share/icons/hicolor/scalable/hildon/general_overlay_back.png");
+ buttonSrf = IMG_Load(BACK_BUTTON_IMG_PATH);
}
buttonRect.x = GUI.Width - buttonSrf->w;
buttonRect.h = buttonSrf->h;
}
-bool exitRequiresDraw()
+bool ExitBtnRequiresDraw()
{
if (!Config.fullscreen) return false;
if (frameCounter > totalAnimLen) {
};
-void exitDraw(SDL_Surface* where)
+void ExitBtnDraw(SDL_Surface* where)
{
SDL_BlitSurface(buttonSrf, 0, where, &buttonRect);
+ SDL_UpdateRects(where, 1, &buttonRect);
};