1
0
mirror of synced 2024-11-23 23:31:02 +01:00

fix: Make sure window is fully opaque by default

This commit is contained in:
WerWolv 2023-10-30 16:40:14 +01:00
parent 94ad6e6072
commit 2fee380459
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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);