mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Use fprintf in error callback of simple example
Besides improving consistency, this also ensures that error messages end with newlines. Closes #628.
This commit is contained in:
parent
51c0c88772
commit
ec7f4d3232
|
@ -32,7 +32,7 @@
|
|||
|
||||
static void error_callback(int error, const char* description)
|
||||
{
|
||||
fputs(description, stderr);
|
||||
fprintf(stderr, "Error: %s\n", description);
|
||||
}
|
||||
|
||||
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
||||
|
|
Loading…
Reference in New Issue
Block a user