From fdc65e49e4d8b3ce9b5e3896506d95b7e471d0c4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 10 Dec 2015 12:16:13 +0100 Subject: [PATCH] Fix bad Win32 updates --- src/wgl_context.c | 2 +- src/win32_monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index c8521d08..c49760e0 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -628,7 +628,7 @@ void _glfwPlatformSwapInterval(int interval) // HACK: Disable WGL swap interval when desktop composition is enabled to // avoid interfering with DWM vsync - if (_glfwIsCompositionEnabled() && !window->monitor) + if (isCompositionEnabled() && !window->monitor) interval = 0; if (_glfw.wgl.EXT_swap_control) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index b34a1267..f8809be5 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -278,7 +278,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) { // HACK: Report the current mode if no valid modes were found result = calloc(1, sizeof(GLFWvidmode)); - _glfwPlatformVideoMode(monitor, result); + _glfwPlatformGetVideoMode(monitor, result); *count = 1; }