[SDL] Resizing Main SDL_Surface
Neil Hodges
kenji.malist at gmail.com
Wed Aug 16 14:38:21 PDT 2006
Hello,
How would I go about resizing the main SDL_Surface?
I've tried the following, but with no success:
================
int ResizeSurface(SDL_Surface * surface, Uint32 flags, Uint32 width, Uint32 height, Uint16 depth) {
SDL_FreeSurface(surface);
surface = SDL_SetVideoMode(width, height, depth, flags);
if(!surface) {
fprintf(stderr, "Unable to set video: %s\n", SDL_GetError());
return -1;
}
return 0;
}
================
- Neil
More information about the SDL
mailing list