Log with category APPLICATION

All our logs should use APPLICATION category. The logs for other
categories are not printed by default under the "critical" level.
This commit is contained in:
Romain Vimont
2018-02-12 16:06:53 +01:00
parent 598ddcbfbc
commit 6fe65d9f5c
9 changed files with 34 additions and 34 deletions

View File

@@ -69,7 +69,7 @@ SDL_Surface *read_xpm(char *xpm[]) {
// parse image
Uint32 *pixels = SDL_malloc(4 * width * height);
if (!pixels) {
SDL_LogError(SDL_LOG_CATEGORY_SYSTEM, "Could not allocate icon memory");
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not allocate icon memory");
return NULL;
}
for (int y = 0; y < height; ++y) {