From: Holger Schemel Date: Mon, 7 Aug 2000 19:03:43 +0000 (+0200) Subject: rnd-20000807-2-src X-Git-Tag: 2.0.0^2~49 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9dcf51eadcd8fb8e1ba937b6a8db76096cc09b05;p=rocksndiamonds.git rnd-20000807-2-src --- 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 }