mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Video mode setting cleanup.
This commit is contained in:
+2
-2
@@ -50,13 +50,13 @@
|
||||
|
||||
// Change the current video mode
|
||||
//
|
||||
int _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* mode)
|
||||
GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
|
||||
{
|
||||
GLFWvidmode current;
|
||||
const GLFWvidmode* best;
|
||||
DEVMODE dm;
|
||||
|
||||
best = _glfwChooseVideoMode(monitor, mode);
|
||||
best = _glfwChooseVideoMode(monitor, desired);
|
||||
|
||||
_glfwPlatformGetVideoMode(monitor, ¤t);
|
||||
if (_glfwCompareVideoModes(¤t, best) == 0)
|
||||
|
||||
Reference in New Issue
Block a user