Added a newline to OutputDebugString(), fixes output on Visual Studio 2008
This commit is contained in:
parent
0ce4bb89d8
commit
00abdbbc2a
1 changed files with 2 additions and 2 deletions
|
@ -299,9 +299,9 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
|
||||||
size_t length;
|
size_t length;
|
||||||
LPTSTR tstr;
|
LPTSTR tstr;
|
||||||
|
|
||||||
length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
|
length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1;
|
||||||
output = SDL_stack_alloc(char, length);
|
output = SDL_stack_alloc(char, length);
|
||||||
SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
|
SDL_snprintf(output, length, "%s: %s\n", SDL_priority_prefixes[priority], message);
|
||||||
tstr = WIN_UTF8ToString(output);
|
tstr = WIN_UTF8ToString(output);
|
||||||
OutputDebugString(tstr);
|
OutputDebugString(tstr);
|
||||||
SDL_free(tstr);
|
SDL_free(tstr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue