瀏覽代碼

Fix bad Win32 updates

Camilla Berglund 9 年之前
父節點
當前提交
fdc65e49e4
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/wgl_context.c
  2. 1 1
      src/win32_monitor.c

+ 1 - 1
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)

+ 1 - 1
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;
     }