Bitmap *new_bitmap = CreateBitmapStruct();
SDL_Surface *sdl_image_tmp;
+ print_timestamp_init("SDLLoadImage");
+
+ print_timestamp_time(getBaseNamePtr(filename));
+
/* load image to temporary surface */
if ((sdl_image_tmp = IMG_Load(filename)) == NULL)
{
return NULL;
}
+ print_timestamp_time("IMG_Load");
+
UPDATE_BUSY_STATE();
/* create native non-transparent surface for current image */
return NULL;
}
+ print_timestamp_time("SDL_DisplayFormat (opaque)");
+
UPDATE_BUSY_STATE();
/* create native transparent surface for current image */
return NULL;
}
+ print_timestamp_time("SDL_DisplayFormat (masked)");
+
UPDATE_BUSY_STATE();
/* free temporary surface */
new_bitmap->width = new_bitmap->surface->w;
new_bitmap->height = new_bitmap->surface->h;
+ print_timestamp_done("SDLLoadImage");
+
return new_bitmap;
}