diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-08-11 16:39:52 +0300 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-08-11 16:40:40 +0300 |
commit | aa06a9d58748b5ef9e9e979891d197f5a26c9fa8 (patch) | |
tree | 7804cebab11477968cfdbadf8b340b1bbd1f5fc0 /platform/default | |
parent | 5a79bd832da2c32f715870a653475dc96fea3f20 (diff) | |
download | qtlocation-mapboxgl-aa06a9d58748b5ef9e9e979891d197f5a26c9fa8.tar.gz |
query the monitor's resolution instead of forcing 1024x768
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/glfw_view.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |