From 59b7e0437912075795276198cad0d0f8a6a9b1e2 Mon Sep 17 00:00:00 2001 From: milek7 Date: Fri, 4 Mar 2022 17:46:53 +0100 Subject: [PATCH] add missing initial fb_size update in pythonscreenviewer --- pythonscreenviewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pythonscreenviewer.cpp b/pythonscreenviewer.cpp index 66b63e72..d09fd023 100644 --- a/pythonscreenviewer.cpp +++ b/pythonscreenviewer.cpp @@ -52,6 +52,8 @@ python_screen_viewer::python_screen_viewer(std::shared_ptr rt, std::s int w, h; glfwGetWindowSize(conf->window, &w, &h); conf->window_size = glm::ivec2(w, h); + glfwGetFramebufferSize(conf->window, &w, &h); + conf->fb_size = glm::ivec2(w, h); } glfwSetWindowUserPointer(conf->window, this);