From d4e1f98394c90e8c397d16f7a612403afbb35feb Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 7 Aug 2012 13:01:19 +0200 Subject: [PATCH] Added output of initial window size. --- tests/events.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/events.c b/tests/events.c index 0d345765..e9b7b7d2 100644 --- a/tests/events.c +++ b/tests/events.c @@ -344,6 +344,7 @@ static void char_callback(GLFWwindow window, int character) int main(void) { GLFWwindow window; + int width, height; setlocale(LC_ALL, ""); @@ -380,6 +381,9 @@ int main(void) glfwSwapInterval(1); + glfwGetWindowSize(window, &width, &height); + printf("Window size should be %ix%i\n", width, height); + printf("Key repeat should be %s\n", keyrepeat ? "enabled" : "disabled"); printf("System keys should be %s\n", systemkeys ? "enabled" : "disabled");