Skip to content

Commit

Permalink
fix: Make sure window is fully opaque by default
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Oct 30, 2023
1 parent 94ad6e6 commit 2fee380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/gui/source/init/splash_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions main/gui/source/window/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2fee380

Please sign in to comment.