From aa06a9d58748b5ef9e9e979891d197f5a26c9fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 11 Aug 2015 16:39:52 +0300 Subject: query the monitor's resolution instead of forcing 1024x768 --- platform/default/glfw_view.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/default') diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 3ac60621e6..8453845d1e 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -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 -- cgit v1.2.1