I’m a SDL-beginner and a C-beginner and I’m toying around with the
show-BMP-tutorials on the sdl-webpages.
Why do I get LOTS of such “debug” output like:
09895: symbol=SDL_UpperBlit; lookup in file=./test
09895: symbol=SDL_UpperBlit; lookup in file=/usr/lib/libSDL-1.2.so.0
09895: symbol=SDL_LowerBlit; lookup in file=./test
09895: symbol=SDL_LowerBlit; lookup in file=/usr/lib/libSDL-1.2.so.0
09895: symbol=SDL_MapSurface; lookup in file=./test
09895: symbol=SDL_MapSurface; lookup in file=/usr/lib/libSDL-1.2.so.0
from this code:
void show_bmp(char *file, SDL_Surface *scr, int x, int y)
{
SDL_Surface *pic;
SDL_Rect *area;
pic = SDL_LoadBMP(file);
area->x = x;
area->y = y;
area->h = x;
area->w = y;
SDL_BlitSurface(pic, NULL, scr, NULL);
SDL_UpdateRect(scr, 0, 0, pic->w, pic->h);
SDL_FreeSurface(pic);
}
and why does the output disappear as soon as I delete the
"area->…" lines?!
Greetings,–
klaus peter thorn
thorn at merlinux.de
postmaster at merlinux.de postmaster at uni-hildesheim.de
www.merlinux.de/thorn