mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Wayland: Use named constants for version checks
The wayland-scanner output provides really nice, self-documenting version macros, so we should use them whenever possible.
This commit is contained in:
+1
-2
@@ -346,8 +346,7 @@ static void resizeWindow(_GLFWwindow* window)
|
||||
|
||||
static void checkScaleChange(_GLFWwindow* window)
|
||||
{
|
||||
// Check if we will be able to set the buffer scale or not.
|
||||
if (_glfw.wl.compositorVersion < 3)
|
||||
if (_glfw.wl.compositorVersion < WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
|
||||
return;
|
||||
|
||||
// Get the scale factor from the highest scale monitor.
|
||||
|
||||
Reference in New Issue
Block a user