Lines Matching defs:mode
39 // Check whether the display mode should be included in enumeration
46 // Calculates the refresh rate, in Hz, from the specified RandR mode info
56 // Returns the mode info for a RandR mode XID
69 // Convert RandR mode info to GLFW video mode
74 GLFWvidmode mode;
78 mode.width = mi->height;
79 mode.height = mi->width;
83 mode.width = mi->width;
84 mode.height = mi->height;
87 mode.refreshRate = calculateRefreshRate(mi);
90 &mode.redBits, &mode.greenBits, &mode.blueBits);
92 return mode;
169 // NOTE: These members are affected by rotation, unlike the mode
226 // Set the current video mode for the specified monitor
251 const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci);
252 if (_glfwCompareVideoModes(best, &mode) == 0)
262 monitor->x11.oldMode = ci->mode;
280 // Restore the saved (original) video mode for the specified monitor
364 const XRRModeInfo* mi = getModeInfo(sr, ci->mode);
464 const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci);
469 if (_glfwCompareVideoModes(result + j, &mode) == 0)
478 result[*count - 1] = mode;
495 GLFWbool _glfwGetVideoModeX11(_GLFWmonitor* monitor, GLFWvidmode* mode)
506 mi = getModeInfo(sr, ci->mode);
508 *mode = vidmodeFromModeInfo(mi, ci);
517 _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Failed to query video mode");
523 mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen);
524 mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen);
525 mode->refreshRate = 0;
528 &mode->redBits, &mode->greenBits, &mode->blueBits);