mirror of
https://github.com/glfw/glfw.git
synced 2025-04-07 22:43:06 +00:00
Avoid X11 video mode setting if modes match.
This matches the behavior of the Windows port.
This commit is contained in:
parent
4fe88a52fa
commit
a79b93f5bc
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
|
|||
}
|
||||
}
|
||||
|
||||
if (bestMode == ci->mode)
|
||||
return;
|
||||
|
||||
if (monitor->x11.oldMode == None)
|
||||
monitor->x11.oldMode = ci->mode;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue