I have my own image format that I read into memory and decompress. I then want to blit to a pre-created (correct pixel depth and W, H etc) SDL_Surface. How can I do this? SDL_Surface width, height and pixel depth are read only apparently =/
EDIT: Also, what's wrong with this:-
void ScreenDump(SDL_Surface *Screen)
{
SDL_SaveBMP(Screen,"data/screen.bmp");
}
ScreenDump(screen);
It seems to slow the device down for a good second or two and then the main loop continues. I have no idea why it won't work. Is it because I am using the primary surface?
EDIT: Also, what's wrong with this:-
void ScreenDump(SDL_Surface *Screen)
{
SDL_SaveBMP(Screen,"data/screen.bmp");
}
ScreenDump(screen);
It seems to slow the device down for a good second or two and then the main loop continues. I have no idea why it won't work. Is it because I am using the primary surface?