From a202b3ed87af44f116600f53e1f0518aa51126ad Mon Sep 17 00:00:00 2001 From: klemek Date: Wed, 10 Sep 2025 23:29:32 +0200 Subject: [PATCH] small fix --- src/forge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/forge.c b/src/forge.c index 9cdde6f..658266f 100644 --- a/src/forge.c +++ b/src/forge.c @@ -8,13 +8,14 @@ #include void error_callback(int error, const char *description) { - fprintf(stderr, "Error: %s\n", description); + fprintf(stderr, "Error %d: %s\n", error, description); } static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods) { - if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) + if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) { glfwSetWindowShouldClose(window, GLFW_TRUE); + } } void forge_run(parameters params) {