endif
USE_SDL = true
+# USE_SDL = false
+# USE_SDL_OLD_LIBS = true
USE_SDL_OLD_LIBS = false
ifeq ($(USE_SDL_OLD_LIBS),true)
#define TAPES_DIRECTORY "tapes"
#define SCORES_DIRECTORY "scores"
+#ifdef USE_SDL_LIBRARY
#define PROGRAM_VERSION_STRING "1.4.0 SDL"
+#else
+#define PROGRAM_VERSION_STRING "1.4.0"
+#endif
#define PROGRAM_TITLE_STRING "Rocks'n'Diamonds"
#define PROGRAM_AUTHOR_STRING "Holger Schemel"
#define WINDOW_TITLE_STRING PROGRAM_TITLE_STRING " " PROGRAM_VERSION_STRING
dst_rect.h = height;
SDL_BlitSurface(src_surface, &src_rect, dst_surface, &dst_rect);
+#if 1
SDL_UpdateRect(dst_surface, dst_x, dst_y, width, height);
+#endif
}
inline void SDLFillRectangle(SDL_Surface *surface, int x, int y,
{
#ifndef USE_SDL_LIBRARY
XFlush(display);
+#else
+#if 0
+ SDL_UpdateRect(window, 0, 0, 0, 0);
+#endif
#endif
}