2
0
Эх сурвалжийг харах

Fix use of undeclared constant

Camilla Berglund 9 жил өмнө
parent
commit
c56af32bb7
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      src/wl_window.c

+ 1 - 2
src/wl_window.c

@@ -80,8 +80,7 @@ static void checkScaleChange(_GLFWwindow* window)
     int monitorScale;
 
     // Check if we will be able to set the buffer scale or not.
-    if (_glfw.wl.wl_compositor_version <
-        WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
+    if (_glfw.wl.wl_compositor_version < 3)
         return;
 
     // Get the scale factor from the highest scale monitor.