From de84874d975937a28324ac7ec4b2ca2989853d3c Mon Sep 17 00:00:00 2001 From: Six Jonathan Date: Tue, 15 Nov 2022 22:35:12 +0100 Subject: [PATCH] Remove white line --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ca60c47..b0643b2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -452,8 +452,8 @@ struct GameData Vec2 petPos = {0.f, 0.f}; Vec2i petSize = {0.f, 0.f}; - Vec2i windowExt = {300.f, 300.f}; - Vec2i windowMinExt = {300.f, 300.f}; + Vec2i windowExt = {0.f, 0.f}; + Vec2i windowMinExt = {0.f, 0.f}; Vec2i windowSize = {0.f, 0.f}; Vec2i windowPos = {0.f, 0.f}; @@ -1855,7 +1855,6 @@ class Game glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, !datas.showFrameBufferBackground); glfwWindowHint(GLFW_VISIBLE, datas.showFrameBufferBackground); glfwWindowHint(GLFW_FLOATING, datas.useFowardWindow); - glfwWindowHint(GLFW_MOUSE_PASSTHROUGH, datas.useMousePassThoughWindow); datas.monitors = glfwGetMonitors(&datas.monitorCount); datas.videoMode = glfwGetVideoMode(datas.monitors[0]); @@ -1873,6 +1872,7 @@ class Game glfwSetWindowAttrib(datas.window, GLFW_DECORATED, datas.showWindow); glfwSetWindowAttrib(datas.window, GLFW_FOCUS_ON_SHOW, GLFW_FALSE); + glfwSetWindowAttrib(datas.window, GLFW_MOUSE_PASSTHROUGH, datas.useMousePassThoughWindow); glfwDefaultWindowHints(); }