Desktop mode full screen fixes for tests.

This commit is contained in:
Camilla Berglund
2014-02-12 14:26:34 +01:00
parent b3c461bd7e
commit 91e069f979
4 changed files with 33 additions and 2 deletions
+6
View File
@@ -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;
}