From 2fee3804598796ddfe9547e1769ed6e09c26a12f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 30 Oct 2023 16:40:14 +0100 Subject: [PATCH] fix: Make sure window is fully opaque by default --- main/gui/source/init/splash_window.cpp | 3 +++ main/gui/source/window/window.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 1e8a3b975..562841096 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -346,6 +346,9 @@ namespace hex::init { std::exit(EXIT_FAILURE); } + // Force window to be fully opaque by default + glfwSetWindowOpacity(this->m_window, 1.0F); + // Calculate native scale factor for hidpi displays { float xScale = 0, yScale = 0; diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 16d2ad9a2..86efc7c32 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -845,6 +845,9 @@ namespace hex { std::abort(); } + // Force window to be fully opaque by default + glfwSetWindowOpacity(this->m_window, 1.0F); + glfwMakeContextCurrent(this->m_window); glfwSwapInterval(1);