projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20131211-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 26cc7a7b103076df0c2d228ad8041f54744c506d..65057b61ba0cd221c273ab4283ed6110ef6eb696 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-1788,6
+1788,10
@@
Bitmap *SDLLoadImage(char *filename)
Bitmap *new_bitmap = CreateBitmapStruct();
SDL_Surface *sdl_image_tmp;
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)
{
/* load image to temporary surface */
if ((sdl_image_tmp = IMG_Load(filename)) == NULL)
{
@@
-1796,6
+1800,8
@@
Bitmap *SDLLoadImage(char *filename)
return NULL;
}
return NULL;
}
+ print_timestamp_time("IMG_Load");
+
UPDATE_BUSY_STATE();
/* create native non-transparent surface for current image */
UPDATE_BUSY_STATE();
/* create native non-transparent surface for current image */
@@
-1806,6
+1812,8
@@
Bitmap *SDLLoadImage(char *filename)
return NULL;
}
return NULL;
}
+ print_timestamp_time("SDL_DisplayFormat (opaque)");
+
UPDATE_BUSY_STATE();
/* create native transparent surface for current image */
UPDATE_BUSY_STATE();
/* create native transparent surface for current image */
@@
-1818,6
+1826,8
@@
Bitmap *SDLLoadImage(char *filename)
return NULL;
}
return NULL;
}
+ print_timestamp_time("SDL_DisplayFormat (masked)");
+
UPDATE_BUSY_STATE();
/* free temporary surface */
UPDATE_BUSY_STATE();
/* free temporary surface */
@@
-1826,6
+1836,8
@@
Bitmap *SDLLoadImage(char *filename)
new_bitmap->width = new_bitmap->surface->w;
new_bitmap->height = new_bitmap->surface->h;
new_bitmap->width = new_bitmap->surface->w;
new_bitmap->height = new_bitmap->surface->h;
+ print_timestamp_done("SDLLoadImage");
+
return new_bitmap;
}
return new_bitmap;
}