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;
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,
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);
-------------- next part --------------
An embedded message was scrubbed…
Date: no date
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010730/23e50220/attachment.emlFrom: unknown sender
Subject: no subject