mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 12:18:51 -05:00
Formatting, added comment.
This commit is contained in:
parent
93ea341211
commit
96c2d04b11
|
@ -152,14 +152,15 @@ static const char* get_button_name(int button)
|
|||
|
||||
static const char* get_character_string(int character)
|
||||
{
|
||||
static char result[6 + 1];
|
||||
// This assumes UTF-8, which is stupid
|
||||
static char result[6 + 1];
|
||||
|
||||
int length = wctomb(result, character);
|
||||
if (length == -1)
|
||||
length = 0;
|
||||
int length = wctomb(result, character);
|
||||
if (length == -1)
|
||||
length = 0;
|
||||
|
||||
result[length] = '\0';
|
||||
return result;
|
||||
result[length] = '\0';
|
||||
return result;
|
||||
}
|
||||
|
||||
static void window_size_callback(GLFWwindow window, int width, int height)
|
||||
|
|
Loading…
Reference in New Issue
Block a user