From 72632a846bc38a0217b57703060de5010f626c41 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 6 Dec 2015 15:08:23 +0100 Subject: [PATCH] Cleanup --- src/win32_monitor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 2cafe6d8..b34a1267 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -266,11 +266,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) if (*count == size) { - if (*count) - size *= 2; - else - size = 128; - + size += 128; result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode)); }