query the monitor's resolution instead of forcing 1024x768

This commit is contained in:
Konstantin Käfer
2015-08-11 16:39:52 +03:00
parent 5a79bd832d
commit aa06a9d587

View File

@@ -29,6 +29,9 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_)
GLFWmonitor *monitor = nullptr;
if (fullscreen) {
monitor = glfwGetPrimaryMonitor();
auto videoMode = glfwGetVideoMode(monitor);
width = videoMode->width;
height = videoMode->height;
}
#ifdef DEBUG