From 9dcf51eadcd8fb8e1ba937b6a8db76096cc09b05 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 7 Aug 2000 21:03:43 +0200 Subject: [PATCH] rnd-20000807-2-src --- src/Makefile | 2 ++ src/main.h | 4 ++++ src/sdl.c | 2 ++ src/system.c | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/src/Makefile b/src/Makefile index f9a71038..0dad3f3d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -35,6 +35,8 @@ EXTRA_LIBS = -lnsl -lsocket -R$(XLIB_PATH) endif USE_SDL = true +# USE_SDL = false +# USE_SDL_OLD_LIBS = true USE_SDL_OLD_LIBS = false ifeq ($(USE_SDL_OLD_LIBS),true) diff --git a/src/main.h b/src/main.h index c46bf476..15c21e81 100644 --- a/src/main.h +++ b/src/main.h @@ -1649,7 +1649,11 @@ extern char *element_info[]; #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 diff --git a/src/sdl.c b/src/sdl.c index bcebf7f2..f782961d 100644 --- a/src/sdl.c +++ b/src/sdl.c @@ -35,7 +35,9 @@ inline void SDLCopyArea(SDL_Surface *src_surface, SDL_Surface *dst_surface, 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, diff --git a/src/system.c b/src/system.c index 6b85ccb3..ac337545 100644 --- a/src/system.c +++ b/src/system.c @@ -88,6 +88,10 @@ inline void FlushDisplay() { #ifndef USE_SDL_LIBRARY XFlush(display); +#else +#if 0 + SDL_UpdateRect(window, 0, 0, 0, 0); +#endif #endif } -- 2.34.1