Examples/ComplexApplication/main_Complex_Application.cpp
/* This function isn't actually used, but if BMP images were used, load_bmp()
   would load the BMP image and convert it to an optimized format (read: same
   pixel format as the display). */
This function isn't actually used, but if BMP images were used, load_bmp()
would load the BMP image and convert it to an optimized format (read: same
pixel format as the display).
This function isn ' t actually used but if BMP images were used load_bmp () would load the BMP image and convert it to an optimized format ( read : same pixel format as the display ) .
SDL_Surface *load_bmp(const char *file) {
    SDL_Surface *tmp, *image;
    tmp = SDL_LoadBMP(file);
    if(tmp == NULL)
        return NULL;
    image = SDL_DisplayFormat(tmp);
    SDL_FreeSurface(tmp);
    return image;
}
SDL_Surface * load_bmp ( const char * file ) { SDL_Surface * tmp , * image ; tmp = SDL_LoadBMP ( file ) ; if ( tmp == NULL ) return NULL ; image = SDL_DisplayFormat ( tmp ) ; SDL_FreeSurface ( tmp ) ; return image ; }
This function isn't actually used, but if BMP images were used, load_bmp()
would load the BMP image and convert it to an optimized format (read: same
pixel format as the display).
This function isn ' t actually used but if BMP images were used load_bmp () would load the BMP image and convert it to an optimized format ( read : same pixel format as the display ) .