[SDL] Rectangle not updating.

Sam Lantinga slouken at devolution.com
Mon Aug 2 01:31:26 PDT 1999


> Using:
> libSDLx11.so.0.9.13
> Linux Redhat 6.0

> Screen width and height 320 x 200:

>   rbg->x = 0;
>   rbg->y = 0;
>   rbg->w = 320;
>   rbg->h = 200;
>   SDL_BlitSurface (background, NULL, Screen, rbg);

>   r->x = 20;
>   r->y = 20;
>   r->w = 32;
>   r->h = 32;
>   SDL_BlitSurface (bmp, NULL, Screen, r);

>   r->x = x++;
>   r->y = y++;
>   r->w = 32;
>   r->h = 32;
>   SDL_BlitSurface (bmp2, NULL, Screen, r);

>   SDL_Flip (Screen);

> -------

> The background and first bitmap are stationary.  The second bitmap moves
> diagonally across the screen overtop the two bitmaps.  However, the
> moving bitmap leaves a trace on the screen over the background bitmap
> (the same dimensions as the screen), but not the 32x32 stationary
> bitmap.

> It seems as though the background bmp is not being redrawn.

Can you send me a simple archive of files that demonstrates this problem?

> ---------
> On another note, when I try to compile the latest snapshot it stops at:

> cc -c -O2 -funroll-loops -fomit-frame-pointer -D_BUILDING_SDL
> -DXFREE86_DGA -DMTRR_SUPPORT -DUSE_ASMBLIT -DESD_SUPPORT
> -DSDL_USE_PTHREADS -D_REENTRANT  -I/usr/X11R6/include -Isrc/linux/x11
> -Iinclude -Isrc -Isrc/hermes -Isrc/stub -Isrc/stub/linux -Isrc/linux
> src/linux/x11/SDL_sysevents.c -o obj/x11/SDL_sysevents.o
> src/linux/x11/SDL_sysevents.c: In function `SDL_DispatchEvent':
> src/linux/x11/SDL_sysevents.c:158: too many arguments to function
> `TranslateKey'
> gmake: *** [obj/x11/SDL_sysevents.o] Error 1

This is fixed in the latest CVS snapshot.

	-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software
--
"Any sufficiently advanced bug is indistinguishable from a feature"
						 -- Rich Kulawiec 



More information about the SDL mailing list