Stabilized Displays View

Manipulation of output window from Displays View, fullscreen and window modes. Adapted preview window of display.
This commit is contained in:
Bruno Herbelin
2022-12-29 20:50:40 +01:00
parent 784ac996d3
commit b3b562f4bb
5 changed files with 306 additions and 82 deletions

View File

@@ -859,6 +859,14 @@ bool RenderingWindow::init(int index, GLFWwindow *share)
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
glfwWindowHint(GLFW_AUTO_ICONIFY, GLFW_FALSE);
if (master_ != nullptr) {
// special window type for output
glfwWindowHint(GLFW_DECORATED, GLFW_FALSE);
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
// glfwSetWindowAttrib( window_, GLFW_DECORATED, GLFW_FALSE);
// glfwSetWindowAttrib( window_, GLFW_RESIZABLE, GLFW_FALSE);
}
// create the window
window_ = glfwCreateWindow(winset.w, winset.h, winset.name.c_str(), NULL, master_);
if (window_ == NULL){
@@ -914,11 +922,6 @@ bool RenderingWindow::init(int index, GLFWwindow *share)
// if not main window
if ( master_ != NULL ) {
// special window type
glfwSetWindowAttrib( window_, GLFW_DECORATED, GLFW_FALSE);
glfwSetWindowAttrib( window_, GLFW_RESIZABLE, GLFW_FALSE);
// Enable vsync on output window
glfwSwapInterval(Settings::application.render.vsync);
// no need for multisampling