Removed return value of close callback.

This commit is contained in:
Camilla Berglund
2013-03-06 23:29:37 +01:00
parent 5d8fdc64f9
commit 64afb193e8
5 changed files with 18 additions and 26 deletions

View File

@@ -244,11 +244,11 @@ static void window_size_callback(GLFWwindow* window, int width, int height)
glViewport(0, 0, width, height);
}
static int window_close_callback(GLFWwindow* window)
static void window_close_callback(GLFWwindow* window)
{
printf("%08x at %0.3f: Window close\n", counter++, glfwGetTime());
return closeable;
glfwSetWindowShouldClose(window, closeable);
}
static void window_refresh_callback(GLFWwindow* window)

View File

@@ -48,10 +48,9 @@ static void window_size_callback(GLFWwindow* window, int width, int height)
glViewport(0, 0, width, height);
}
static int window_close_callback(GLFWwindow* window)
static void window_close_callback(GLFWwindow* window)
{
printf("Close callback triggered\n");
return GL_TRUE;
}
static void key_callback(GLFWwindow* window, int key, int action)