Mercurial > sdl-ios-xcode
diff src/render/SDL_render.c @ 5226:2ee8112bfc6b
Added a simple log message API
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 16:45:40 -0800 |
parents | 115fff0641ee |
children | 2178ffe17222 |
line wrap: on
line diff
--- a/src/render/SDL_render.c Mon Feb 07 10:40:21 2011 -0800 +++ b/src/render/SDL_render.c Mon Feb 07 16:45:40 2011 -0800 @@ -24,6 +24,7 @@ /* The SDL 2D rendering system */ #include "SDL_hints.h" +#include "SDL_log.h" #include "SDL_render.h" #include "SDL_sysrender.h" #include "../video/SDL_pixels_c.h" @@ -159,6 +160,9 @@ renderer->window = window; SDL_AddEventWatch(SDL_RendererEventWatch, renderer); + + SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, + "Created renderer: %s", renderer->info.name); } return renderer; }