[Fwd: SDL List reply]


     Thanks for your reply to my question,

I am new to SDL and still a novice programmer…
I have a simple program that displays a .bmp
i can run debug and the window and surface are created, and the .bmp
is displayed… like it should…
When I compile and run the program normally, the .bmp doesn’t show
up (without errors) ???

 I am building this on Linux within KDE (kdevelop 2.2.0 beta1), 

here is the code i am using (abridged version [:)] ) , any help on this
is greatly appriciated.

maybe the WM asked you to redraw but you aren’t checking for events?

 how do i check for window manager events?

             Thank you again,
                     Paul Gaynor

SDL_Surface *screen, *surface, *image;
SDL_Rect dst;
screen = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);

surface = SDL_CreateRGBSurface (screen->flags, screen->w, screen->h,
BPP, screen->format->Rmask, screen->format->Gmask,
screen->format->Bmask, screen->format->Amask);

image = SDL_LoadBMP(“test.bmp”);

dst.x = 0; dst.y = 0; dst.w = screen->w; dst.h = screen->h;

SDL_BlitSurface(image, NULL, screen, &dst);


SDL_WM_SetCaption(title_string, NULL);

-------------- next part --------------
An embedded message was scrubbed…
Date: no date
Size: 1748
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010730/23e50220/attachment.emlFrom: unknown sender
Subject: no subject