mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Desktop mode full screen fixes for tests.
This commit is contained in:
@@ -123,6 +123,12 @@ int main(int argc, char** argv)
|
||||
if (monitor)
|
||||
{
|
||||
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
|
||||
|
||||
glfwWindowHint(GLFW_REFRESH_RATE, mode->refreshRate);
|
||||
glfwWindowHint(GLFW_RED_BITS, mode->redBits);
|
||||
glfwWindowHint(GLFW_GREEN_BITS, mode->greenBits);
|
||||
glfwWindowHint(GLFW_BLUE_BITS, mode->blueBits);
|
||||
|
||||
width = mode->width;
|
||||
height = mode->height;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user