diff options
author | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-07-18 22:15:09 +0200 |
---|---|---|
committer | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-07-18 22:15:09 +0200 |
commit | 9deb747bd914741a5a6f794568dfc9e53d8ec924 (patch) | |
tree | 2005e088faaf37d2ccfe2371d1e3c1e3ff6b40fe /src/graphic.c | |
parent | 9d61ab291c6ef80683c518d4cbe65ff7488d60d0 (diff) | |
download | mplemmings-9deb747bd914741a5a6f794568dfc9e53d8ec924.tar.gz mplemmings-9deb747bd914741a5a6f794568dfc9e53d8ec924.tar.bz2 mplemmings-9deb747bd914741a5a6f794568dfc9e53d8ec924.zip |
Ajout des noms des formats plutot que les constantes barbares dans les logs.
Diffstat (limited to 'src/graphic.c')
-rw-r--r-- | src/graphic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphic.c b/src/graphic.c index f55f461..58d38f1 100644 --- a/src/graphic.c +++ b/src/graphic.c @@ -25,7 +25,7 @@ void my_SDL_init_or_die(char title[], SDL_Rect win_pos, Uint32 init_flags, Uint3 SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION,SDL_LOG_PRIORITY_INFO, - "SDL_GetWindowPixelFormat() returns 0x%x", SDL_GetWindowPixelFormat(*win) + "SDL_GetWindowPixelFormat() returns %s", SDL_GetPixelFormatName(SDL_GetWindowPixelFormat(*win)) ); *rend=SDL_CreateRenderer(*win,-1, rend_flags); @@ -51,7 +51,7 @@ void my_SDL_init_or_die(char title[], SDL_Rect win_pos, Uint32 init_flags, Uint3 tf=rend_info->texture_formats[i]; SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION,SDL_LOG_PRIORITY_INFO, - "rend_info->texture_formats[%i] == 0x%x", i, tf + "rend_info->texture_formats[%i] == %s", i, SDL_GetPixelFormatName(tf) ); } |